/* ===========================
   RESET + GLOBAL STYLING
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #a1c3c7;
  color: #0a0a0a;
  line-height: 1.6;
} 

.container {
  width: 50%;
  max-width: 1100px;
  margin: auto;
}

/* ===========================
  HEADER + NAVIGATION
=========================== */
@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 0.5rem;
  }
}
header {
  display: flex;
  justify-content: space-between;     /* Move items to the left */
  align-items: center;
  background: #023dd2;
  color: #fff;
  padding: 0.195rem 0.1255rem;
  position: sticky;
  top: 10;
  z-index: 1800;
}

header .logo {
  margin-right: auto; /* Push nav to the  */
}

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

.logo {
  font-size: 3rem;
  font-weight: bold;
  margin-left: 2rem;
}

.nav-links {
  top: 100px;
  left: 50;
  font: 4rem;
  margin-left: auto;       /* Push nav to the far right */
  width: 100%;
  background: #033eb2;
  align-items: center;
  gap: 20px;
  padding: 2.2rem 0.2;
  list-style: none;
  display: flex;
 
}

.nav-links li a {
  text-decoration: none;
  color: #faf8f8;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #f00505;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 16rem;
}

.search-container input {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 0.9rem;
}

.search-container .search-btn {
  background: #ffffff;
  border: none;
  color: #5bdef2;
  font-size: 1rem;
  padding: 0.5rem 0.7rem;
  margin-left: 0.3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-container .search-btn:hover {
  background: #ffffff;
}

.menu-toggle {
  display: none;
  font-size: 10.5rem;
  cursor: pointer;
}

.call-btn {
  background: linear-gradient(45deg, #1f11e5, #020e6b); /* Orange-red gradient */
  color: #ffffff;
  font-size: 1rem;
  font-weight: 620;
  padding: 7px 20px;
  border-radius: 30px;
  margin-left: 0.2rem; 
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.call-btn:hover {
  background-color: #f68c8c;
  transform: translateY(-2px);
}

.call-btn:active {
  background-color: #fd0404;
  transform: scale(0.98);
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .call-btn {
    display: block;
    margin: 10px auto 0;
    text-align: center;
    width: 100%;
  }
}

/* ===========================
   HERO / HOME
=========================== */
.hero {
  background: url("Mabati Rolling Mills Offices.webp") no-repeat center center/cover;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f9f6f6;
  padding: 5rem;
}

.hero-content h1 {
  font-size: 5.0rem;
  margin-bottom: 10rem;
}

.highlight-title {
  display: inline-block; /* makes the background fit just the text */
  background: #e4e6eb;   /* light grey background */
  color: #023dd2;        /* red text color (same as your theme) */
  padding: 1.5rem 1rem;  /* space around text */
  border-radius: 35px;    /* soft rounded corners */
  font-weight: 780;
  text-shadow: 4px 4px 7px rgba(8, 8, 8, 0.3); /* subtle shadow */
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.order-btn {
  background: linear-gradient(45deg,#023dd2, #023dd2); /* Blue gradient */
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  margin-left: 15px; /* spacing from nav or call button */
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.order-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.offer-btn {
  background: linear-gradient(45deg,#023dd2, #023dd2); /* Blue gradient */
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  margin-left: 25px; /* spacing from nav or call button */
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.offer-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.offer-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Mobile view adjustments */
@media (max-width: 768px) {
  .offer-btn {
    display: block;
    width: 10%;
    margin: 10px auto;
    text-align: center;
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}

.call-us-btn {
  position: fixed;
  bottom: 25px;   /* slightly above WhatsApp button */
  right: 1100px;
  background-color: #023dd2;  /* bright red */
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  padding: 15px 8px;
  border-radius: 40px;
  box-shadow: 0 0 8px 2px black;  /* bold black shadow */
  animation: blinkCall 5s infinite;
  transition: transform 0.2s ease-in-out;
  z-index: 1000;
}

.call-us-btn:hover {
  transform: scale(1.08);
  background-color: #cc0000; /* darker red on hover */
}

/* Blink effect every 5s */
@keyframes blinkCall {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.3; }
}


/* ===========================
   SECTION BASE
=========================== */
.section {
  padding: 4rem 2rem;
}

.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #004080;
}

/* ===========================
   PRODUCTS GRID
=========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

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

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

.card-content {
  padding: 1rem;
}

.buy-now-btn {
  display: inline-block;
  background-color: #28a745; /* Green for phone/contact action */
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 50px; /* Rounded button */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.buy-now-btn:hover {
  background-color: #218838; /* Darker green hover */
  transform: translateY(-2px);
}

.buy-now-btn:active {
  background-color: #f90505; /* Even darker when tapped */
  transform: scale(0.98);
}

/* Mobile-friendly (make it wider and centered) */
@media (max-width: 768px) {
  .buy-now-btn {
    display: block;
    text-align: center;
    width: 50%;
    margin: 15px auto;
    font-size: 1.5rem;
    padding: 10px;
  }
}

.card-content h3 {
  margin-bottom: 0.5rem;
  color: #0356a9;
}

/* ===========================
   ABOUT PAGE
=========================== */

.about-section {
  padding: 80px 20px;
  background: #f9f9f9;
}

.about-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

.about-text .btn-primary {
  display: inline-block;
  background: #16e86d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.about-text .btn-primary:hover {
  background: #219150;
}

.about-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #1c67df;
  border-radius: 8px;
  width: 100%;
}

.contact-form button {
  padding: 0.8rem;
  border: none;
  background: #004080;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #f10303;
}

/* ===========================
   BLOG PAGE
=========================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.blog-content {
  padding: 1rem;
}

.blog-content h3 {
  margin-bottom: 0.5rem;
  color: #004080;
}

.blog-content p {
  font-size: 0.95rem;
  color: #555;
}

.blog-list article {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ===========================
   NEWS PAGE
=========================== */
.news-list {
  max-width: 800px;
  margin: auto;
}

.news-item {
  background: #fff;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 5px solid #004080;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item img {
  width: 100%;              /* Make image fill container width */
  height: auto;             /* Keep proportions */
  max-height: 400px;        /* Prevent images from being too tall */
  object-fit: cover;        /* Crop nicely to fit */
  border-radius: 10px;      /* Match container rounding */
  margin-bottom: 1rem;      /* Space below image */
  display: block;           /* Removes inline gaps */
}

.news-item h4 {
  margin-bottom: 0.5rem;
  color: #004080;
}

article {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #fff;
  padding: 1.5rem;
  border-left: 5px solid #004080;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-card img {
  width: 100%;              /* Fill container width */
  max-width: 120px;         /* Keep image from getting too large */
  height: 120px;            /* Set fixed height for uniform look */
  object-fit: cover;        /* Crop image nicely inside the box */
  border-radius: 50%;       /* Make it circular */
  margin: 0 auto 1rem;      /* Center and add spacing below */
  display: block;           /* Ensure it respects container alignment */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Soft shadow for elegance */
}

blockquote {
  background: #f1f1f1;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 5px solid #e63946;
  border-radius: 5px;
  font-style: italic;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: -15px;
  right: 40px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: -20px;
  animation: blink 5.5s infinite;
  transition: transform 0.2s ease-in-out;
  z-index: 999;
}

/* WhatsApp Icon Image */
.whatsapp-icon {
  width: 120px;
  height: 120px;
  animation: blink 3.5s infinite;
  max-width: 250px;
  margin-right: -60px;
}

/* Blink Effect */
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 3; }
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #023dd2;;
  color: #ffffff;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

footer a {
  color: #41dff4;
  text-decoration: none;
}
/* ===========================
   SHARED PAGE STRUCTURE
=========================== */
.page {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

.page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a202c;
}

.page p, 
.page blockquote {
  line-height: 1.6;
  color: #444;
}

/* ===========================
   UNIVERSAL MOBILE VIEW FIXES
   For screens ≤ 768px
=========================== */
@media (max-width: 768px) {
  
  /* Container */
  .container {
    width: 100%;
    padding: 10 1rem;
  }

  /* Header */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: -5rem -1rem;
  }

  .logo {
    font-size: 3.2rem;
    margin-left: 2;
  }

  /* Navigation */
  .navbar {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 500rem;
    background: #023dd2;
    width: 500%;
    text-align: center;
    margin: 50;
    padding: 100rem;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: #fff;
    margin-left: auto;
  }

  /* Call & Order Buttons */
  .call-btn,
  .order-btn,
  .offer-btn {
    width: 50%;
    margin: 0.4rem auto;
    text-align: center;
    font-size: 0.99rem;
    padding: 0.5rem;
  }

  /* Hero Section */
  .hero {
    height: auto;
    padding: 7.5rem 4.8rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 4rem;
  }

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

  .highlight-title {
    padding: 0.7rem;
    font-size: 1.2rem;
    border-radius: 20px;
  }

  /* Products Grid */
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card img {
    height: 160px;
  }

  .buy-now-btn {
    width: 47%;
    font-size: 1rem;
  }

  /* About Page */
  .about-content {
    flex-direction: column;
    text-align: center;
    width: 70%;
  }

  .about-image img {
    max-width: 85%;
    text-align: center;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials {
    grid-template-columns: 1fr;
  }

  .testimonial-card img {
    width: 80px;
    height: 80px;
  }

  /* Contact Form */
  .contact-form {
    width: 100%;
    padding: 1rem;
  }

  /* News */
  .news-item img {
    max-height: 220px;
  }

  /* whatsapp-icon */
  .whatsapp-icon {
    width: 140%;
    padding: 3.2rem;
    height: 210px;
    margin-left: 5;
    max-width: 220px;
    right: 20px;
  }

  .whatsapp-icon img {
    width: 18px;
    height: 18px;
  }
}