/*
 Theme Name: Astra Child
 Theme URI: https://kedar
 Author: Pooja Raikar
 Template: astra
 Version: 1.0.0
 Description: Child theme of Astra for Conveyor Belt Company Profile
*/

/* General Section Styling */
section {
  display: block;
  width: 100%;
  clear: both;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Hero Section Full Width */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
}
.hero-overlay {
  background: rgba(21,21,21,0.7);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  text-align: center;
  color: #FAF4F0;
  max-width: 700px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #FAF4F0;
}
.btn-primary {
  background: #F58A4D;
  color: #FAF4F0;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
}
.btn-primary:hover {
  background: #F37021;
  color: #FAF4F0;
}

/* About Section Layout */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.about-text {
  flex: 1 1 50%;
}
.about-image {
  flex: 1 1 50%;
}
.about-image img {
  max-width: 100%;
  border-radius: 8px;
}

/* Services Section Grid */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 20px;
}
.service-item {
  flex: 1 1 calc(33.333% - 20px);
  background: #FAF4F0;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(21,21,21,0.1);
}

/* CTA Section */
.cta-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 20px;
  width: 100%
}
.cta-item {
  flex: 1 1 calc(100% - 20px);
  background: #FAF4F0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(21,21,21,0.1);
}

/* Contact Section */
.contact ul {
  list-style: none;
  padding: 0;
}
.contact li {
  margin-bottom: 10px;
}


/* ---------- Force safe container & stacking on Home / Front Page ---------- */
/* Target front page / home body classes */
body.home .site, body.home .ast-site, body.home .ast-container,
body.front-page .site, body.front-page .ast-site, body.front-page .ast-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Ensure entry content / main content does not use flex row layout */
body.home .entry-content, body.front-page .entry-content,
body.home .content-area, body.front-page .content-area {
  display: block !important;
  width: 100% !important;
}

/* Make each section full width and stack vertically */
.frontpage-section, .hero, .about, .services, .contact, section {
  display: block !important;
  width: 100% !important;
  clear: both !important;
  box-sizing: border-box !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 auto 60px auto;
}

.about, .services, .contact, .CTA {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  height: 70vh;
  min-height: 450px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hero-overlay {
  background: rgba(21,21,21,0.7);
  width: 100%;
  max-width: 1200px;
  padding: 60px 30px;
  box-sizing: border-box;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-content {
  max-width: 760px;
  text-align: left;
  color: #FAF4F0;
}
.hero-content h1 { font-size: 2.6rem; margin: 0 0 12px; line-height:1.05; }
.hero-content p { font-size: 1.05rem; margin-bottom: 16px; }

/* ---------- About: two-column layout ---------- */
.about .container, .about-content, .CTA .container {
  max-width: 1200px;
  margin: 0 3%;
}

.about-content {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.about-text {
  flex: 1 1 48%;
  min-width: 260px;
  box-sizing: border-box;
  padding-right: 10px;
}
.about-image {
  flex: 1 1 48%;
  min-width: 260px;
  box-sizing: border-box;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ---------- Services: grid 3-up ---------- */
.services .container {
  max-width: 1200px;
  margin: 0 3%;
}
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}
.service-item {
  background: #FAF4F0;
  padding: 24px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(21, 21, 21, 0.06);
}

/* ---------- Contact ---------- */
.contact .container { max-width: 1200px; margin: 0 3%; }
.contact ul { list-style: none; padding: 0; margin: 0; }
.contact li { margin-bottom: 12px; }

/* ---------- Utility / Fixes ---------- */
/* Ensure buttons look right and do not force widths */
.btn, .btn-primary, a.btn {
  display: inline-block;
  text-decoration: none;
}

/* Remove unexpected floats / widths inherited from theme */
.front-page .widget, .front-page .site-main .widget {
  float: none !important;
  width: 100% !important;
}

/* ---------- Responsive: stack on smaller screens ---------- */
@media (max-width: 1024px) {
  .hero-content { text-align: center; padding-left: 0; }
  .hero-content h1 { font-size: 2rem; }
  .about-text, .about-image { flex: 1 1 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /*.hero { height: 55vh; min-height: 320px; }*/
  .hero-content h1 { font-size: 1.6rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { padding: 18px; }
  .front-page .ast-header-break-point .main-header-bar .main-header-bar-navigation { display:block; }
}

/* Kill Astra flex layout on homepage */
body.home .ast-container,
body.home .site-content,
body.home .content-area,
body.home .entry-content {
  display: block !important;
  flex-direction: unset !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure sections stack full width */
body.home section,
body.home .frontpage-section {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}


.kedar-products img{
  max-width: 400px;
  height: auto;
  border-radius: 8px; /* optional for softer edges */
  object-fit: cover;
  width: 100%;
}

.kedar-products {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
}

.kedar-products:nth-child(even) {
  background-color: #FDDCC8; /* 20% light orange background */
}

.kedar-products:nth-child(odd) {
  background-color: #FAF4F0; /* 5% white like orange background */
}

body.home .site{
  max-width: none !important;
}

.ast-container{
  padding: 0px !important;
  display: block !important;
  margin: 0px !important;
}

.ast-primary-header-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.kedar-products {
    scroll-margin-top: 120px;
}

@media (min-width: 922px) {
    .ast-container {
        max-width: unset;
    }
}

.ast-container .content-area{
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-header {
    margin-left: 20px;
    margin-right: 20px;
}

a:focus {
    outline: none;
}

@media (max-width: 921px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 20px;
        margin-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media (max-width: 640px) {
  .site-footer .footer-column{
    min-width: 300px;
  }
  .site-footer .footer-column ul li {
    margin-bottom: 0px;
  }
}
