/* ============================
   Piyaro Organics – Final CSS
   Fullscreen Hero + No Black Bars
   ============================ */

:root{
  --primary:#5c854c;
  --accent:#e68a1d;
  --dark:#2c3e50;
  --muted:#7f8c8d;
  --bg:#f7f7f7;
  --card-bg:#fff;
  --shadow-light:rgba(0,0,0,0.08);
  --shadow-hover:rgba(0,0,0,0.15);
  --border-radius:8px;
  --font-family:'Poppins',sans-serif;
  --maxw:1200px;
  --header-height:74px; /* adjust if header size changed */
}

/* === RESET === */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--font-family);
  background:var(--bg);
  color:var(--dark);
  line-height:1.6;
}

/* === CONTAINER === */
.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}

/* === HEADER === */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 20px;
  background:#fff;
  box-shadow:0 8px 30px var(--shadow-light);
  position:sticky;
  top:0;
  z-index:100;
  height:var(--header-height);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1.1rem;
  color:var(--dark);
}
.brand .custom-logo{
  width:78px;
  height:78px;
  object-fit:contain;
}

/* BRAND TEXT STYLING - STRONG BOLD + ITALIC TAGLINE */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height:1.05;
}
.brand-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.brand-tagline {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 6px;
}

.nav a{
  margin-left:20px;
  font-weight:500;
  font-size:1rem;
  color:var(--dark);
  text-decoration:none;
}
.nav a:hover{color:var(--primary)}

.mobile-toggle{
  display:none;
  border:0;
  background:transparent;
  font-size:28px;
  cursor:pointer;
}

/* === HERO SECTION FULL WIDTH === */
.hero-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 45vh;        /* adjust this value (e.g. 30vh / 35vh / 50vh) */
  min-height: 200px;
  overflow: hidden;    /* critical */
  background: #000;
}

/* SLIDESHOW WRAPPER — fills hero */
.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* wrapper for each slide (stacked) */
.hero-slide-wrap {
  position: absolute;
  inset: 0;                    /* occupy full hero area */
  display: flex;
  align-items: center;         /* vertical centering of image */
  justify-content: center;     /* horizontal centering of image */
  opacity: 0;
  transition: opacity .6s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

/* active slide visible */
.hero-slide-wrap[aria-hidden="false"] {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* the actual <img> — fill the hero box, center crop to avoid side gaps */
.hero-slide {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;           /* fills box, no black bars (cropping allowed) */
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

/* CENTER HERO CONTENT PERFECTLY */
.hero-content-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;      /* horizontal center */
  justify-content: center;  /* vertical center */
  text-align: center;       /* center text */
  z-index: 10;              /* above slideshow */
  padding: 0 20px;
}

.hero-content {
  color: #fff;              /* ensure text visible */
  max-width: 700px;
}

..hero-content h1 {
  font-size: clamp(22px, 3vw, 38px);
}
.hero-content p {
  font-size: clamp(13px, 1.2vw, 18px);
}
.hero-btns {
  gap: 12px;
}

/* Position buttons at the BOTTOM CENTER of the hero */
.hero-btns {
  position: absolute;
  bottom: 20px;           /* distance from bottom of hero */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 20;
}

/* Keep text centered above */
.hero-content h1,
.hero-content p {
  position: relative;
  z-index: 20;
}

/* Reduce margin so text doesn’t push buttons down */
.hero-content {
  padding-bottom: 60px;   /* space so text stays above buttons */
}

/* === BUTTONS === */
.btn{
  padding:8px 16px;
  border-radius:50px;
  background:var(--primary);
  border:2px solid var(--primary);
  color:#fff;
  font-weight:600;
  text-decoration:none;
}
.btn:hover{
  background:var(--accent);
  border-color:var(--accent);
}

.btn-secondary{
  padding:10px 20px;
  border-radius:50px;
  border:2px solid #fff;
  color:#fff;
  background:transparent;
  text-decoration:none;
}
.btn-secondary:hover{
  background:#fff;
  color:var(--primary);
}

/* === PRODUCT GRID === */
.product-grid{
  padding:60px 0;
  text-align:center;
}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px,1fr));
  gap:30px;
}
.product-card{
  background:#fff;
  border-radius:var(--border-radius);
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.product-card img{
  width:100%;
  height:260px;
  object-fit:contain;
  background:#fff;
}
.product-info{
  padding:16px;
}
.product-info h3{
  margin-bottom:8px;
  font-size:1.15rem;
}
.action-btn{
  margin-top:12px;
  padding:10px 0;
  width:90%;
  border-radius:50px;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  display:inline-block;
  font-weight:600;
}

/* === FOOTER === */
.footer{
  background:var(--dark);
  padding:28px 20px;
  text-align:center;
  color:#fff;
}

/* === RESPONSIVE === */
@media(max-width:1024px){
  .hero-content h1 { font-size: clamp(22px, 5vw, 40px); }
  .brand-title{ font-size:1.6rem; }
}
@media(max-width:768px){
  .mobile-toggle{display:block}
  .nav{ display:none; flex-direction:column; background:#fff; margin-top:14px; padding:10px; border-radius:8px; box-shadow:0 6px 18px var(--shadow-light); }
  .nav.active{display:flex}
  .hero-content{ text-align:center; padding:0 10px; }
  .hero-section{ height:40vh; min-height:220px; }
  .brand .custom-logo { width:60px; height:60px; }
  .brand-title { font-size:1.25rem; }
}

