/**************************************************
 * SHYAM ALUMINIUM — CLEAN MASTER STYLESHEET
 * Single source of truth. No duplicates.
 **************************************************/

/* ---------------------------
   0) Tokens / Base / Resets
   --------------------------- */
:root{
  --primary-color:#f72585;
  --secondary-color:#198075;
  --dark-bg:#333333;
  --light-bg:#f4f4f4;
  --text-color:#333333;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Arial,Helvetica,sans-serif;
  background-color:var(--light-bg);
  color:var(--text-color);
  overflow-x:hidden;
  -webkit-overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* Generic page title (where used) */
.sec-title{
  color:var(--primary-color);
  text-align:center;
  margin:0 0 20px;
  font-size:2rem;
  line-height:1.2;
}

/* ---------------------------
   1) Header + Navbar (Fixed)
   --------------------------- */
header{
  position:fixed;
  top:0; left:0; width:100%;
  z-index:1002;
  background:#fff;
  padding:15px 30px;
  display:flex; align-items:center; justify-content:center;
  border-bottom:0 solid var(--secondary-color);
  text-align:center; gap:20px; flex-wrap:wrap;
}
header .logo{width:60px;height:60px;object-fit:contain}
header h1{
  color:var(--primary-color);
  font-size:2.4rem; margin:0;
  letter-spacing:.5px;
}
header p{
  color:var(--secondary-color);
  margin:0; font-size:1.05rem;
}

/* Top navbar sticks just below header */
.navbar{
  position:fixed;
  top:100px; /* keep in sync with header approx height */
  left:0; width:100%; z-index:1001;
  background:var(--secondary-color);
  text-align:center;
  box-shadow:0 0 5px rgba(0,0,0,.2);
}
.navbar a{
  display:inline-block;
  color:#fff;
  padding:14px 20px;
  transition:background-color .25s ease;
    font-size:12px;
}
.navbar a:hover{ background:#14615a }
.navbar a.active{
  background:var(--primary-color);
  color:#fff;
  font-weight:700;
  border-radius:4px;
}

/* Global top padding so content does not hide under fixed bars */
body{ padding-top:160px } /* header (≈100px) + navbar (≈60px) */
@media (max-width:768px){ body{ padding-top:140px } }

/* ---------------------------
   2) Home — Slider (fade) + Dots + Caption
   --------------------------- */
.slider-container{
  width:100%; margin:0 auto; padding:0; overflow:hidden;
}
.slider{
  position:relative;
  width:98%; max-width:600px; height:400px;
  margin:20px auto 80px;
  overflow:hidden; border-radius:8px;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
}
.slide{
  position:absolute; inset:0;
  opacity:0; display:none;
  transition:opacity 1s ease-in-out;
}
.slide.active{ display:block; opacity:1 }
.slider img{ width:100%; height:100%; object-fit:contain; background:#fff }

.caption{
  position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  background:rgba(0,0,0,.72);
  color:#fff; padding:10px 20px;
  border-radius:5px 5px 0 0;
  white-space:nowrap; font-weight:600;
    font-size:12px;
}
.dots{
  position:absolute; bottom:60px; left:50%; transform:translateX(-50%);
}
.dot{
  height:10px; width:10px; margin:0 5px;
  background:#bbb; border-radius:50%;
  display:inline-block; cursor:pointer;
  transition:background-color .25s ease;
}
.dot.active{ background:var(--primary-color) }

/* ---------------------------
   3) Home — Featured Cards
   --------------------------- */
.featured-products-section{
  width:98%; max-width:1200px; margin:40px auto; padding:0 10px;
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px; width:100%; margin:20px auto 0;
}
.product-card{
  background:#fff; border-radius:8px; overflow:hidden;
  text-align:center;
  box-shadow:0 4px 8px rgba(0,0,0,.10);
  transition:transform .3s, box-shadow .3s;
  color:inherit;
}
.product-card:hover{ transform:translateY(-5px); box-shadow:0 6px 12px rgba(0,0,0,.20) }
.product-card img{ width:100%; height:200px; object-fit:contain; background:#fff }
.product-card h3{ color:var(--secondary-color); margin:14px 0 6px; font-size:1.2rem }
.featured-card p{ color:var(--primary-color); margin:0 0 14px; font-weight:700;font-size:1rem }
.view-all-button-container{ text-align:center; margin:28px 0 50px }
.view-all-button{
  display:inline-block; padding:12px 30px; border-radius:6px;
  color:#fff; background:var(--primary-color); font-weight:700;
  transition:background-color .25s ease;
}
.view-all-button:hover{ background:#d11e74 }
/* ======================================= */
/* ====== 10. Why Choose Us Section ====== */
/* ======================================= */

.why-choose-us-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 15px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.usp-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.usp-item {
    flex-basis: 280px; /* Item width */
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s;
}

.usp-item:hover {
    background-color: #e9e9e9;
}

.usp-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.usp-item h4 {
    color: var(--secondary-color);
    margin: 10px 0;
    font-size:15px;
}

.usp-item p {
    font-size: 2em;
    color: #555;
}
/* ---------------------------
   4) Products — Grid + Modal
   --------------------------- */
.details-btn{
  display:inline-block; margin:0 0 14px; padding:8px 12px;
  background:var(--primary-color); color:#fff; border:0; border-radius:6px;
  cursor:pointer; font-weight:600;
}

/* Modal */
.modal{ display:none; position:fixed; inset:0; z-index:1050; background:rgba(0,0,0,.7) }
.modal-content{
  background:#fff; width:90%; max-width:520px;
  margin:12% auto; padding:24px; border-radius:10px; position:relative;
  box-shadow:0 5px 15px rgba(0,0,0,.3);
    font-size:20px;
}
.close-button{ position:absolute; top:10px; right:15px; font-size:28px; cursor:pointer; color:#666 }
.close-button:hover{ color:#000 }
.modal-content h2{ margin:0 0 8px; color:var(--primary-color) }
.rate-info{ margin-top:12px; padding:10px; background:var(--light-bg); border-radius:6px }
.enquiry-button{
  display:inline-block; margin-top:16px; padding:10px 16px;
  background:var(--primary-color); color:#fff; border-radius:6px;
    font-size:10px;
}

/* ---------------------------
   5) Contact — Center + Boxed Map
   --------------------------- */
.contact-section{
  width:92%; max-width:1100px;
  margin:24px auto; padding:24px 16px;
  scroll-margin-top:120px; /* fixed header safety */
    font-size:12px;
    text-align:center;
}
.contact-section .sec-title{ text-align:center; margin:0 0 10px }

.contact-box{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:16px; margin-top:20px;
}
.contact-box p{
  flex:0 1 240px; margin:0; padding:14px 12px; text-align:center;
  background:#fff; border:1px solid #ddd; border-radius:6px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
    font-size:15px
}
.contact-box i{ font-size:24px; margin-bottom:6px; color:var(--primary-color) }
.contact-box a{ color:var(--secondary-color); font-weight:600 }
.contact-box a:hover{ text-decoration:underline }

#google-map-container{
  width:92%; max-width:1100px;
  margin:22px auto 0; overflow:hidden; background:#fff;
  border:4px solid var(--secondary-color); border-radius:10px;
  box-shadow:0 6px 15px rgba(0,0,0,.18);
}
#google-map-container iframe{
  display:block; width:100% !important; height:450px; border:0 !important;
}

/* ---------------------------
   6) Footer
   --------------------------- */
.footer{
  background:var(--dark-bg); color:#fff;
  text-align:center; padding:12px 0; margin-top:40px;
}

/* ---------------------------
   7) Floating WhatsApp
   --------------------------- */
.float-whatsapp{
  position:fixed; bottom:20px; right:20px; z-index:1000;
  width:50px; height:50px; border-radius:50%;
  background:#25d366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 8px rgba(0,0,0,.3);
}
.float-whatsapp img{ width:30px; height:30px; filter:invert(100%) }

/* ---------------------------
   8) Bottom Mobile Navigation
   (Hidden on desktop, shows on mobile)
   --------------------------- */
.bottom-nav{
  display:none;
}
.bottom-nav a.active{ color:var(--primary-color) }
.bottom-nav a.active img{
  filter:invert(30%) sepia(90%) saturate(2400%) hue-rotate(320deg) brightness(100%) contrast(100%);
}

/* ---------------------------
   9) Responsive
   --------------------------- */
@media (max-width:900px){
  .featured-products-section{ width:96% }
}

@media (max-width:768px){
  /* Header compact + hide top navbar (we use bottom-nav on mobile) */
  header{ padding:10px 12px; gap:10px }
  header h1{ font-size:1.8rem; margin-top:2px }
  header p{ font-size:.95rem }
  .navbar{ display:none }               /* hide top navbar on mobile */

  /* Space adjustments for content */
  body{ padding-top:140px }
  .featured-products-section{ padding:0; margin-top:18px }
  .slider{ width:calc(100% - 20px); height:360px; margin:10px auto 90px }
  .caption{ font-size:1rem; padding:8px 14px }
  .dots{ bottom:44px }

  /* Contact section */
  .contact-section{ width:94%; padding:16px 10px }
  .contact-box{ gap:12px }
  .contact-box p{ flex:1 1 100% }

  /* Map box a bit lighter on mobile */
  #google-map-container{
    width:94%; border-width:2px;
    box-shadow:0 4px 12px rgba(0,0,0,.16);
  }
  #google-map-container iframe{ height:360px }

  /* Mobile bottom nav visible */
  .bottom-nav{
    display:flex; position:fixed; bottom:0; left:0; width:100%; height:60px;
    background:var(--secondary-color);
    box-shadow:0 -2px 5px rgba(0,0,0,.4);
    z-index:1000; justify-content:space-around; align-items:center; padding:5px 0;
    border-top:3px solid var(--primary-color);
  }
  .bottom-nav a{
    flex-basis:20%;
    text-align:center; color:#fff;
    display:flex; flex-direction:column; align-items:center;
  }
  .bottom-nav img{ width:20px; height:20px; filter:invert(100%); margin-bottom:3px }
  .bottom-nav span{ font-size:.7rem; white-space:nowrap }

/* =========================
   ABOUT PAGE CSS START
========================= */

.about-section {
    padding: 60px 20px;
    background: #f8f9fb;
    text-align: center;
}

.sec-title {
    font-size: 32px;
    color: #222;
    margin-bottom: 20px;
    position: relative;
}

.sec-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #ff9800;
    display: block;
    margin: 10px auto;
    border-radius: 5px;
}

.company-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.8;
    color: #555;
}

/* BOX SECTION */
.about-box {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-item {
    background: #ffffff;
    padding: 30px 20px;
    width: 280px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
}

.about-item i {
    font-size: 40px;
    color: #ff9800;
    margin-bottom: 15px;
}

.about-item h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 10px;
}

.about-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 769px) {
    .sec-title {
        font-size: 26px;
    }

    .company-intro {
        font-size: 16px;
    }

    .about-item {
        width: 100%;
        max-width: 350px;
    }
}

/* =========================
   ABOUT PAGE CSS END
========================= */
    /* ===== About Section: main wrapper ===== */
.about-section {
  max-width: 1100px;          /* neat content width */
  margin: 0 auto;             /* center container */
  padding: 24px 16px;
  text-align: center;         /* default center for children */
}

/* ===== Main section title (H3) ===== */
.about-section .sec-title {
  font-size: 38px;            /* bada size */
  line-height: 1.25;
  font-weight: 800;
  margin: 12px 0 18px;
  text-align: center;         /* force center */
}

/* ===== Intro paragraph ===== */
.about-section .company-intro {
  font-size: 20px;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 900px;           /* readable line length */
  text-align: center;
}

/* ===== Feature grid wrapper ===== */
.about-section .about-box {
  display: grid;
  grid-template-columns: 1fr; /* mobile first */
  gap: 18px;
}

/* ===== Each feature item ===== */
.about-section .about-item {
  padding: 14px 10px;
}

/* Icon size */
.about-section .about-item .fa {
  font-size: 30px;
  color: #c21a35;             /* brand/highlight color – change if needed */
  margin-bottom: 8px;
}

/* Feature Heading (H4) */
.about-section .about-item h4 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  margin: 8px 0 6px;
  text-align: center;
}

/* Feature paragraph */
.about-section .about-item p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 850px;
  text-align: center;
}

/* ===== Responsive tweaks ===== */
@media (min-width: 768px) {
  .about-section .sec-title { font-size: 44px; }
  .about-section .company-intro { font-size: 21px; }
  .about-section .about-item h4 { font-size: 28px; }
  .about-section .about-item p { font-size: 19px; }

  .about-section .about-box {
    grid-template-columns: repeat(2, 1fr); /* tablet: 2 columns */
  }
}

@media (min-width: 1024px) {
  .about-section .sec-title { font-size: 48px; }
  .about-section .about-item h4 { font-size: 30px; }
  .about-section .about-box {
    grid-template-columns: repeat(3, 1fr); /* desktop: 3 columns if 3 items */
  }
}
/* ---------------------------
   3) About Page Fix (Centered & Large)
   --------------------------- */
.about-section { text-align: center; padding: 40px 20px; }

.sec-title {
  color: var(--primary-color);
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 20px;
}

.company-intro, .about-section p {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.25rem;
  text-align: center; /* Desktop Alignment Fix */
  line-height: 1.8;
}

.about-box {
  display: flex; gap: 20px; flex-wrap: wrap;
  justify-content: center; margin-top: 30px;
}

.about-item {
  background: #fff; padding: 30px; width: 320px;
  border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.07);
  text-align: center;
}


