/* ===== Sulthana Agro Power Tools — Stylesheet ===== */

:root {
  --green-dark: #0f3d1a;
  --green: #1b6b2e;
  --green-mid: #237a37;
  --green-light: #eaf5ec;
  --yellow: #f6c418;
  --yellow-dark: #e0ac00;
  --ink: #1a1a1a;
  --gray: #6b7280;
  --gray-light: #f3f4f4;
  --white: #ffffff;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 6px 24px rgba(15, 61, 26, 0.08);
  --shadow-hover: 0 12px 32px rgba(15, 61, 26, 0.14);
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.15;
}

:focus-visible {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(27, 107, 46, 0.3);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-accent {
  background: var(--yellow);
  color: var(--green-dark);
  box-shadow: 0 6px 16px rgba(246, 196, 24, 0.4);
}
.btn-accent:hover { background: var(--yellow-dark); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: var(--green);
  letter-spacing: 0.5px;
}
.brand-text .sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink);
}
.brand-text .sub span { color: var(--yellow-dark); }

.main-nav ul { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--green-light); }
.main-nav a.active { background: var(--green); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--green-dark);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .current { color: var(--yellow); font-weight: 600; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(11,46,20,1) 0%, rgba(11,46,20,1) 26%, rgba(11,46,20,0) 58%), url('../assets/images/hero-bg.jpg');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: cover;
  padding: 90px 0 130px;
  color: var(--white);
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; opacity: 0.15; }
.hero-shapes svg { width: 100%; height: 100%; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}
.hero h1 .accent { color: var(--yellow); }
.hero-tagline {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.hero-tagline .dot { color: var(--yellow); margin: 0 6px; }

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

/* ===== Section headers ===== */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.section-head h2 .accent-word { color: var(--green); }
.section-head h2 i { color: var(--green); font-size: 22px; }
.section-head p { margin-top: 10px; color: var(--gray); font-size: 15.5px; }

/* ===== Products grid ===== */
.products-section { padding: 90px 0 70px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid #eef1ee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card .thumb {
  height: 150px;
  margin-bottom: 14px;
  background: var(--white);
  border: 1px solid #f0f2f0;
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
}
.product-card .thumb i { font-size: 42px; color: var(--green); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card .best-seller-tag {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--green-dark);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.product-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.product-card p { font-size: 13px; color: var(--gray); margin: 0 0 16px; flex-grow: 1; }

/* ===== Branches ===== */
.branches-section { background: var(--green-light); padding: 80px 0; }
.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.branch-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  gap: 0;
}
.branch-photo {
  width: 42%;
  background: var(--green-dark);
  overflow: hidden;
  align-self: stretch;
}
.branch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.branch-photo i { font-size: 46px; color: rgba(255, 255, 255, 0.85); }
.branch-info { padding: 22px; flex: 1; }
.branch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--yellow);
  color: var(--green-dark);
  border-radius: 50%;
  margin-bottom: 10px;
}
.branch-info h3 { color: var(--green); font-size: 15.5px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 10px; }
.branch-info p { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.branch-info .meta { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 13.5px; margin-bottom: 6px; }
.branch-info .meta i { color: var(--green); width: 14px; }
.branch-info .meta a { color: inherit; text-decoration: none; }
.branch-info .meta a:hover { text-decoration: underline; }
.branch-info .btn { margin-top: 14px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-head { text-align: center; margin-bottom: 34px; }
.footer-head h2 { font-size: 26px; font-weight: 800; }
.footer-head h2 span { color: var(--yellow); }
.footer-head p { color: rgba(255, 255, 255, 0.7); margin-top: 8px; font-size: 14.5px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.footer-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
}
.footer-pill .icon-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.footer-pill.instagram .icon-circle { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); color: #fff; }
.footer-pill.email .icon-circle { background: var(--yellow); color: var(--green-dark); }
.footer-pill.contact .icon-circle { background: var(--green); color: #fff; }
.footer-pill .text strong { display: block; font-size: 14.5px; }
.footer-pill .text span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }
.footer-pill .arrow {
  margin-left: auto;
  width: 30px; height: 30px;
  background: var(--yellow);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Products listing page ===== */
.page-head { padding: 46px 0 10px; text-align: center; }
.page-head h1 { font-size: 32px; font-weight: 800; }
.page-head p { color: var(--gray); margin-top: 8px; }

/* ===== Product detail page ===== */
.product-detail { padding: 46px 0 80px; }
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.pd-gallery-main {
  position: relative;
  background: var(--white);
  border: 1px solid #f0f2f0;
  border-radius: var(--radius);
  height: 380px;
  overflow: hidden;
  padding: 30px;
}
.pd-gallery-main i { font-size: 130px; color: var(--green); }
.pd-gallery-main img, #pdGalleryMain img { width: 100%; height: 100%; object-fit: contain; display: block; }
#pdGalleryMain { width: 100%; height: 100%; }
.best-seller-ribbon {
  position: absolute; top: 16px; left: 16px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
}
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumbs .thumb {
  width: 74px; height: 74px;
  border: 2px solid #e5e7e5;
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  padding: 8px;
}
.pd-thumbs .thumb.active { border-color: var(--green); }
.pd-thumbs .thumb i { font-size: 24px; color: var(--green); }
.pd-thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pd-category { color: var(--green); font-weight: 700; letter-spacing: 1.5px; font-size: 13px; }
.pd-title { font-size: 32px; font-weight: 800; margin: 8px 0 6px; }
.pd-subtitle { color: var(--gray); font-size: 15.5px; margin-bottom: 14px; }
.pd-divider { width: 60px; height: 4px; background: var(--yellow); border-radius: 4px; margin-bottom: 18px; }
.pd-description { color: #333; font-size: 15px; line-height: 1.7; margin-bottom: 24px; }

.pd-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.pd-feature { text-align: center; background: var(--gray-light); border-radius: 10px; padding: 16px 8px; }
.pd-feature i { color: var(--green); font-size: 22px; margin-bottom: 8px; }
.pd-feature span { display: block; font-size: 12.5px; font-weight: 600; }

.pd-cta { display: flex; gap: 14px; margin-bottom: 22px; }
.pd-cta .btn { flex: 1; }

.pd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: var(--gray-light); border-radius: var(--radius); padding: 18px; }
.pd-trust .item { text-align: center; }
.pd-trust .item i { color: var(--green); font-size: 20px; margin-bottom: 6px; }
.pd-trust .item strong { display: block; font-size: 13px; }
.pd-trust .item span { display: block; font-size: 11.5px; color: var(--gray); }

/* Tabs */
.pd-tabs-section { margin-top: 60px; }
.tabs-bar { display: flex; gap: 6px; border-bottom: 2px solid #eee; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; padding: 14px 20px;
  font-weight: 700; font-size: 14.5px; color: var(--gray);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn.active { color: var(--green); border-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-desc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.tab-desc-grid h3 { font-size: 20px; margin-bottom: 14px; }
.tab-desc-grid p { color: #333; line-height: 1.7; margin-bottom: 16px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14.5px; }
.checklist li i { color: var(--green); margin-top: 3px; }

.specs-box { background: var(--gray-light); border-radius: var(--radius); padding: 24px; }
.specs-box h3 { font-size: 18px; margin-bottom: 16px; }
.spec-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e6e8e6; font-size: 14px; }
.spec-row:last-child { border-bottom: none; }
.spec-row i { color: var(--green); width: 18px; }
.spec-row .label { color: var(--gray); flex: 1; }
.spec-row .value { font-weight: 700; }

.features-panel-grid, .manual-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.manual-panel { color: var(--gray); font-size: 14.5px; grid-template-columns: 1fr; }

/* Related products */

/* ===== Contact page ===== */
.contact-section { padding: 60px 0 90px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #e4e7e4; font-family: inherit; font-size: 14.5px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form input.invalid { border-color: #d64545; }
.field-error {
  display: none;
  color: #a32d2d;
  font-size: 12.5px;
  margin: 6px 0 0;
  font-weight: 600;
}
.field-error.show { display: block; }
.contact-info-card { background: var(--green-light); border-radius: var(--radius); padding: 26px; }
.contact-info-card .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; text-decoration: none; color: inherit; border-radius: 8px; transition: background 0.15s ease; }
.contact-info-card a.row { cursor: pointer; }
.contact-info-card a.row:hover { background: rgba(27, 107, 46, 0.08); }
.contact-info-card .row i { color: var(--green); font-size: 18px; margin-top: 3px; }
.contact-info-card .row strong { display: block; font-size: 14.5px; margin-bottom: 2px; color: var(--ink); }
.contact-info-card .row span { color: var(--gray); font-size: 13.5px; }
.contact-info-card .row span a { color: inherit; text-decoration: none; font-weight: inherit; }
.contact-info-card .row span a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { background-image: linear-gradient(90deg, rgba(11,46,20,0.95) 0%, rgba(11,46,20,0.95) 32%, rgba(11,46,20,0) 68%), url('../assets/images/hero-bg.jpg'); background-repeat: no-repeat; background-position: bottom right; background-size: cover; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .branches-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  .tab-desc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav {
    position: fixed; top: 78px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    z-index: 90;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav a { display: block; text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 80px; }
  .hero h1 { font-size: 32px; }
  .hero-eyebrow { font-size: 12.5px; }
  .hero-tagline { font-size: 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card { padding: 14px; }
  .section-head h2 { font-size: 22px; flex-wrap: wrap; }
  .branch-card { flex-direction: column; }
  .branch-photo { width: 100%; height: 180px; }
  .pd-gallery-main { height: 260px; padding: 18px; }
  .pd-features { grid-template-columns: repeat(2, 1fr); }
  .pd-cta { flex-direction: column; }
  .pd-trust { grid-template-columns: 1fr; }
  .footer-pill { flex-wrap: wrap; }
  .pd-title { font-size: 24px; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 10px; }
  .product-card .thumb { height: 110px; }
  .hero h1 { font-size: 27px; }
  .container { padding: 0 16px; }
}
