/* ==========================================================================
   Hyderabad Poultry Equipments — redesign stylesheet
   ========================================================================== */

:root{
  --ink:        #17181a;
  --ink-soft:   #55585c;
  --ink-faint:  #8d9195;
  --bg:         #ffffff;
  --bg-soft:    #f5f5f5;
  --bg-tint:    #ececec;
  --line:       #e1e2e3;
  --primary:    #1c1d1f;
  --primary-dark:#0a0a0b;
  --primary-tint:#eeeeee;
  --accent:     #1c1d1f;
  --accent-dark:#000000;
  --white:      #ffffff;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(10,10,11,.06), 0 1px 1px rgba(10,10,11,.04);
  --shadow-md:  0 8px 24px rgba(10,10,11,.10);
  --shadow-lg:  0 20px 48px rgba(10,10,11,.16);
  --container:  1180px;
  --font-head:  'Poppins', 'Segoe UI', sans-serif;
  --font-body:  'Inter', 'Segoe UI', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4,h5{
  font-family: var(--font-head);
  color: var(--ink);
  line-height:1.2;
  margin:0 0 .5em;
  font-weight:600;
}
p{ margin:0 0 1em; }
.container{
  width:100%;
  max-width: var(--container);
  margin:0 auto;
  padding: 0 24px;
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
section{ padding: 84px 0; }
section + section{ border-top: 1px solid var(--line); }
.section-alt{ background: var(--bg-soft); }
.section-dark{ background: var(--primary-dark); color: rgba(255,255,255,.92); }
.section-dark h2, .section-dark h3{ color:#fff; }

.eyebrow{
  display:inline-block;
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight:600;
  margin-bottom: 10px;
}
.section-head{
  max-width: 700px;
  margin: 0 auto 48px;
  text-align:center;
}
.section-head h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; margin:0; }
.section-head.left{ margin-left:0; text-align:left; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight:600;
  font-size: .92rem;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--primary); color: #fff; }
.btn-primary:hover{ background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline{ background: transparent; border-color: rgba(255,255,255,.55); color:#fff; }
.btn-outline:hover{ background: rgba(255,255,255,.12); }
.btn-line{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover{ border-color: var(--primary); color: var(--primary); }
/* On dark surfaces (hero, cta-band) the default dark btn-primary would vanish — invert to a light button there. */
.hero .btn-primary{ background:#fff; color:#141414; }
.hero .btn-primary:hover{ background:#e7e7e7; }
.btn-sm{ padding: 9px 18px; font-size: .82rem; }
.btn svg{ width:16px; height:16px; }

/* ---------- Header / Nav ---------- */
.topbar{
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
}
.topbar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:9px;
  padding-bottom:9px;
  gap: 16px;
  flex-wrap:wrap;
}
.topbar a{ color:#fff; }
.topbar .topbar-item{ display:inline-flex; align-items:center; gap:7px; }
.topbar .topbar-right{ display:flex; gap: 22px; flex-wrap:wrap; }

header.site-header{
  position: sticky;
  top:0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height: 54px; width:auto; }

.nav-links{ display:flex; align-items:center; gap: 4px; }
.nav-links > li{ position:relative; }
.nav-links > li > a{
  display:block;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-weight:500;
  font-size: .93rem;
  color: var(--ink);
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.nav-links > li > a:hover,
.nav-links > li.active > a{ color: var(--primary); background: var(--primary-tint); }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}
.nav-toggle span{
  display:block;
  width:24px;
  height:2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute;
    top: 100%; left:0; right:0;
    background: #fff;
    flex-direction:column;
    align-items:stretch;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height:0;
    overflow:hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open{ max-height: 640px; }
  .nav-links > li > a{ padding: 14px 24px; border-radius:0; }
  .topbar .topbar-right{ gap:14px; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  color:#fff;
  padding: 120px 0 96px;
  background-color: var(--primary-dark);
  background-image: linear-gradient(180deg, rgba(6,6,7,.74), rgba(6,6,7,.9));
  background-size: cover;
  background-position: center;
  overflow:hidden;
}
.hero.has-image{
  background-size: cover;
  background-position: center;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(60% 90% at 85% 10%, rgba(255,255,255,.10), transparent 60%);
  pointer-events:none;
}
.hero .container{ position:relative; z-index:1; }
.hero h1{ color:#fff; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 780px; }
.hero p.lead{ color: rgba(255,255,255,.85); max-width: 620px; font-size: 1.08rem; }
.hero-actions{ display:flex; gap:14px; margin-top: 28px; flex-wrap:wrap; }
.hero-small{ padding: 70px 0 60px; }
.breadcrumb-row{ display:flex; align-items:center; gap:8px; color: rgba(255,255,255,.7); font-size:.88rem; margin-top:10px; flex-wrap:wrap; }
.breadcrumb-row a{ color: rgba(255,255,255,.85); }

/* ---------- Stats ---------- */
.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.stat{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align:left;
}
.stat .num{ font-family: var(--font-head); font-size: 1.8rem; font-weight:700; color:#fff; }
.stat .label{ font-size: .82rem; color: rgba(255,255,255,.72); margin-top:2px; }
@media (max-width: 760px){ .stats{ grid-template-columns: repeat(2,1fr); } }

/* ---------- About / two column ---------- */
.split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items:center;
}
.split > *{ min-width:0; }
.split.reverse{ direction: rtl; }
.split.reverse > *{ direction: ltr; }
.split img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } }

/* ---------- Cards grid ---------- */
.grid{ display:grid; gap: 26px; }
.grid > *{ min-width:0; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .card-media{ aspect-ratio: 4/3; overflow:hidden; background: var(--bg-soft); display:flex; align-items:center; justify-content:center; }
.card .card-media img{ width:100%; height:100%; object-fit:cover; transition: transform .3s ease; }
.card:hover .card-media img{ transform: scale(1.05); }
.card .card-body{ padding: 20px 22px 24px; }
.card h3{ font-size: 1.05rem; margin-bottom:8px; }
.card p{ color: var(--ink-soft); font-size: .93rem; margin-bottom: 14px; }

.icon-card{
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.icon-card .icon{
  flex: none;
  width:46px; height:46px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display:flex; align-items:center; justify-content:center;
}
.icon-card .icon svg{ width:22px; height:22px; }
.icon-card h3{ font-size: 1rem; margin-bottom:4px; }
.icon-card p{ color: var(--ink-soft); font-size: .9rem; margin:0; }

/* ---------- Filter tabs (products) ---------- */
.filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-bottom: 40px;
}
.filter-btn{
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-size: .87rem;
  font-weight:500;
  cursor:pointer;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.filter-btn:hover{ border-color: var(--primary); color: var(--primary); }
.filter-btn.active{ background: var(--primary); border-color: var(--primary); color:#fff; }

.product-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px){ .product-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .product-grid{ grid-template-columns: 1fr; } }

.product-tile{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius-md);
  overflow:hidden;
  cursor:pointer;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-tile:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-tile .thumb{ aspect-ratio: 1/1; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; padding: 14px; }
.product-tile .thumb img{ width:100%; height:100%; object-fit:contain; }
.product-tile .tile-label{ padding: 12px 14px 16px; font-size:.86rem; font-weight:600; font-family:var(--font-head); color: var(--ink); text-align:center; }
.product-tile[hidden]{ display:none; }

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed; inset:0; z-index: 500;
  background: rgba(10,16,14,.86);
  display:none;
  align-items:center; justify-content:center;
  padding: 40px 20px;
}
.lightbox.open{ display:flex; }
.lightbox figure{ margin:0; max-width: 900px; text-align:center; }
.lightbox img{ max-height: 80vh; margin: 0 auto; border-radius: 10px; background:#fff; }
.lightbox figcaption{ color:#fff; margin-top:14px; font-family: var(--font-head); }
.lightbox .lb-close{
  position:absolute; top:22px; right:26px;
  width:42px; height:42px; border-radius:50%;
  background: rgba(255,255,255,.12); color:#fff; border:none; cursor:pointer;
  font-size: 1.3rem; line-height:1;
}
.lightbox .lb-close:hover{ background: rgba(255,255,255,.24); }

/* ---------- Hatchery blocks ---------- */
.hatchery-block{ padding: 64px 0; }
.hatchery-block + .hatchery-block{ border-top: 1px solid var(--line); }
.hatchery-head{ display:flex; justify-content:space-between; align-items:flex-end; gap: 20px; flex-wrap:wrap; margin-bottom: 28px; }
.hatchery-head h2{ font-size: 1.5rem; margin:0; }
.hatchery-meta{ display:flex; gap:18px; flex-wrap:wrap; }
.meta-pill{
  background: var(--primary-tint); color: var(--primary);
  font-size:.8rem; font-weight:600; font-family: var(--font-head);
  padding: 7px 14px; border-radius: 999px;
}
.gallery-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width: 700px){ .gallery-3{ grid-template-columns: 1fr; } }
.gallery-3 figure{ margin:0; border-radius: var(--radius-md); overflow:hidden; background: var(--bg-soft); border:1px solid var(--line); }
.gallery-3 img{ width:100%; aspect-ratio: 4/3; object-fit:cover; cursor:pointer; transition: transform .3s ease; }
.gallery-3 img:hover{ transform: scale(1.03); }
.gallery-3 figcaption{ padding: 12px 14px; font-size: .85rem; color: var(--ink-soft); font-weight:500; }

.gallery-placeholder{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-md);
  padding: 40px 20px; text-align:center; color: var(--ink-faint);
}
.gallery-placeholder svg{ width:30px; height:30px; opacity:.6; }
.gallery-placeholder span{ font-size:.88rem; font-weight:500; }

/* ---------- Client region lists ---------- */
.region-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
@media (max-width: 860px){ .region-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .region-grid{ grid-template-columns: 1fr; } }
.region h3{
  font-size: .82rem; text-transform:uppercase; letter-spacing:.08em;
  color: var(--accent-dark); margin-bottom: 12px;
}
.region ul li{
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: .93rem;
}
.region ul li:last-child{ border-bottom:none; }

.logo-strip{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  align-items:center;
}
@media (max-width: 860px){ .logo-strip{ grid-template-columns: repeat(4,1fr); } }
@media (max-width: 520px){ .logo-strip{ grid-template-columns: repeat(3,1fr); } }
.logo-strip .logo-box{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; display:flex; align-items:center; justify-content:center; aspect-ratio: 3/2;
}
.logo-strip img{ max-height: 100%; max-width:100%; object-fit:contain; filter: grayscale(20%); opacity:.9; }

/* ---------- Tables ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius: var(--radius-md); }
table.data-table{ width:100%; border-collapse:collapse; font-size:.92rem; min-width: 640px; }
table.data-table th, table.data-table td{ padding: 13px 16px; text-align:center; border-bottom:1px solid var(--line); }
table.data-table thead th{
  background: var(--primary-dark); color:#fff; font-family: var(--font-head); font-weight:600;
  font-size: .82rem; text-transform:uppercase; letter-spacing:.04em;
}
table.data-table tbody tr:nth-child(even){ background: var(--bg-soft); }
table.data-table tbody tr:hover{ background: var(--primary-tint); }

/* ---------- Spec cards (operation) ---------- */
.spec-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}
.spec-card h3{ font-size:1.15rem; margin-bottom: 6px; }
.spec-card .cap{ color: var(--accent-dark); font-family: var(--font-head); font-weight:600; font-size:.85rem; margin-bottom:18px; display:block; }
.spec-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.spec-list div{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:.9rem; text-align:center; border-bottom:1px dashed var(--line); padding-bottom:8px; }
.spec-list span.k{ color: var(--ink-soft); }
.spec-list span.v{ font-weight:600; }
@media (max-width: 560px){ .spec-list{ grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--primary-dark);
  color: rgba(255,255,255,.82);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 20px;
  flex-wrap:wrap;
}
.cta-band h3{ margin:0 0 4px; color:#fff; }
.cta-band p{ margin:0; color:rgba(255,255,255,.7); }
.cta-band .btn-primary{ background:#fff; color:#141414; }
.cta-band .btn-primary:hover{ background:#e7e7e7; }

/* ---------- Contact ---------- */
.contact-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px;
}
.contact-card .icon{
  width:48px; height:48px; border-radius:13px;
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color:#fff;
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
  box-shadow: 0 6px 14px rgba(10,10,11,.22);
}
.contact-card .icon svg{ width:21px; height:21px; stroke-width:1.75; }
.contact-card ul li{ display:flex; gap:10px; padding: 5px 0; color: var(--ink-soft); font-size:.93rem; overflow-wrap:anywhere; }
.contact-card ul li svg{ width:16px; height:16px; flex:none; margin-top:4px; color: var(--primary); }
.contact-card-center h3{ font-size:1.7rem; margin-bottom:.6em; text-align:center; }
.contact-card-center ul li{ text-align:left; font-size:1.02rem; }

.map-frame{ border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--line); }
.map-frame iframe{ width:100%; height: 340px; border:0; display:block; }

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:.82rem; font-weight:600; color: var(--ink-soft); }
.field input, .field textarea{
  width:100%; box-sizing:border-box;
  border:1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background:#fff;
}
.field input:focus, .field textarea:focus{ outline:2px solid var(--primary); outline-offset:1px; }
.form-note{ font-size:.82rem; margin-top:10px; }
.form-note.ok{ color: var(--ink); }
.form-note.err{ color:#b3261e; }

/* ---------- Video grid ---------- */
.video-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
@media (max-width: 860px){ .video-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .video-grid{ grid-template-columns: 1fr; } }
.video-frame{ position:relative; border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--line); aspect-ratio:16/9; background:#000; }
.video-frame iframe{ width:100%; height:100%; border:0; }

/* ---------- Footer ---------- */
footer.site-footer{ background: var(--primary-dark); color: rgba(255,255,255,.78); padding-top: 64px; }
.footer-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 44px; }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color:#fff; font-size: .85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom: 16px; }
.footer-brand .logo-chip{
  display:inline-flex;
  align-items:center;
  margin-bottom: 14px;
}
.footer-brand img{ height:36px; display:block; }
.footer-brand p{ font-size:.88rem; color: rgba(255,255,255,.62); }
.social-links{ display:flex; gap:10px; margin-top:16px; }
.social-links a{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social-links a:hover{ background:#fff; color: var(--primary-dark); transform: translateY(-2px); }
.social-links svg{ width:17px; height:17px; }
footer.site-footer ul li{ padding: 5px 0; font-size:.9rem; }
footer.site-footer ul li a:hover{ color:#fff; }
footer.site-footer address{ font-style:normal; font-size:.9rem; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-size:.82rem; color: rgba(255,255,255,.55);
}

/* ---------- Back to top ---------- */
.to-top{
  position:fixed; right:22px; bottom:22px; z-index:150;
  width:46px; height:46px;
  background: transparent; border:none; box-shadow:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.show{ opacity:1; pointer-events:auto; transform:none; }
.to-top img{ width:34px; height:34px; object-fit:contain; display:block; }

/* ---------- Reveal on scroll (subtle, never hides content) ---------- */
.reveal{ opacity:1; transform:none; }
.reveal.pending{ opacity:0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- Misc ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.tag-list{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{ background: var(--bg-tint); color: var(--ink-soft); font-size:.78rem; padding:5px 11px; border-radius:999px; }
