/* ===================================================================
   XPOLAR HOME APPLIANCES — Shared Stylesheet
   White + Formal Navy Blue theme, inspired by Usha / Crompton layouts
=================================================================== */

:root {
  --navy: #0B3D6B;
  --navy-dark: #082C4E;
  --blue: #1D6FC4;
  --blue-light: #EAF2FB;
  --white: #FFFFFF;
  --bg-alt: #F6F8FA;
  --text: #1E2A38;
  --text-soft: #5B6B7C;
  --border: #E3E8EE;
  --success: #16A34A;
  --success-bg: #E9F9EF;
  --wa-green: #25D366;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 61, 107, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}

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

ul {
  list-style: none;
}

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

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

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: .15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ---------- Top Utility Bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #CBD9E8;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar-left {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar a {
  color: #CBD9E8;
}

.topbar a:hover {
  color: #fff;
}

/* ---------- Header / Nav ---------- */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 18px;
}

.logo-text strong {
  display: block;
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-dark);
  letter-spacing: 0.03em;
}

.logo-text span {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.logo-img {
  height: 60px;
  display: block;
}

/* .logo-tag{ font-size:11px; color:var(--text-soft); font-weight:600; letter-spacing:0.03em; white-space:nowrap; } */
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy-dark);
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 22px;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .35s ease, visibility .35s;
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-dark);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease .1s, transform .3s ease .1s;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav .close-btn {
  align-self: flex-end;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy-dark);
}

/* ---------- Breadcrumb / Page header ---------- */
.page-header {
  background: var(--blue-light);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(180deg, #F6F9FC 0%, #FFFFFF 100%);
  padding: 70px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--navy);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--blue);
}

.hero p {
  color: var(--text-soft);
  font-size: 16.5px;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-dark);
}

.hero-stats div span {
  font-size: 12.5px;
  color: var(--text-soft);
}

/* .hero-visual{
  height:360px; border-radius:16px; background:linear-gradient(150deg,var(--navy) 0%, var(--blue) 100%);
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
}
.hero-visual .tagline{ color:#fff; text-align:center; padding:0 40px; }
.hero-visual .tagline h3{ color:#fff; font-size:22px; margin-bottom:6px; }
.hero-visual .tagline p{ color:#D9E8F7; font-size:14px; } */


.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  display: block;
  transition: transform 0.4s ease;
}


/* ---------- Section headings ---------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--blue);
}

h2.title {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}

p.lead {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 640px;
}

/* ---------- Category tiles (home) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.cat-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: .2s;
  cursor: pointer;
}

.cat-tile:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
  transform: translateY(-4px);
}

.cat-tile .icon {
  font-size: 34px;
  margin-bottom: 12px;
}

.cat-tile h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.cat-tile span {
  font-size: 12.5px;
  color: var(--text-soft);
}

/* ---------- Product Tabs ---------- */
.tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--border);
  margin: 28px 0 36px;
}

.tab-btn {
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: .15s;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ---------- Product Grid / Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: #D3E0EE;
}

.product-thumb {
  height: 150px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.product-thumb-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* .product-thumb{ height:150px; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; font-size:42px; border-bottom:1px solid var(--border); } */
.product-body {
  padding: 18px;
}

.product-cat {
  font-size: 11.5px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-body h4 {
  font-size: 16px;
  margin: 6px 0 8px;
}

.product-body p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.product-body a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Trust band ---------- */
.trust-band {
  background: var(--navy);
  color: #fff;
  padding: 44px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.trust-grid div strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.trust-grid div span {
  font-size: 13.5px;
  color: #B9CBDF;
}

/* ---------- About / feature list ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.about-visual {
  height: 320px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--blue-light), #DCEAFA);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--blue-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 15.5px;
  margin-bottom: 3px;
}

.feature-item p {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ---------- Forms ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.form-side {
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 44px 38px;
}

.form-side .badge {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.form-side h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.form-side p {
  color: #C9DAEB;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-side ul {
  display: grid;
  gap: 9px;
}

.form-side ul li {
  font-size: 13px;
  color: #D9E8F7;
}

.form-main {
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: 1/-1;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
  display: block;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: 'Inter';
  font-size: 14.5px;
  color: var(--text);
  background: #FBFCFE;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.field {
  margin-bottom: 16px;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.form-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.success {
  background: var(--success-bg);
  color: var(--success);
}

.form-msg.error {
  background: #FDECEC;
  color: #C0392B;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--blue-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 13.5px;
  color: var(--text-soft);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 280px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: #B9CBDF;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 14px;
}

.footer-grid li {
  margin-bottom: 9px;
  font-size: 13.5px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  animation: pulse 2.4s infinite;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (prefers-reduced-motion:reduce) {
  .wa-float {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width:980px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:720px) {
  nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  section {
    padding: 48px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 16px;
    gap: 5px;
  }

  .topbar-left {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .topbar {
    font-size: 12px;
  }

  .logo-img {
    height: 38px;
  }

  .nav-wrap {
    padding: 12px 16px;
  }
}

@media (max-width:480px) {

  .product-grid,
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}