/* Syben Plumbing Solutions - Main Stylesheet */

/* ---- CSS Variables (design tokens) ---- */
:root {
  --bg: hsl(210, 33%, 98%);
  --fg: hsl(215, 28%, 17%);
  --card: hsl(0, 0%, 100%);
  --card-fg: hsl(215, 28%, 17%);
  --primary: hsl(222, 72%, 11%);
  --primary-fg: hsl(210, 33%, 98%);
  --secondary: hsl(201, 94%, 40%);
  --secondary-fg: hsl(0, 0%, 100%);
  --muted: hsl(210, 20%, 95%);
  --muted-fg: hsl(215, 16%, 47%);
  --accent: hsl(20, 90%, 48%);
  --accent-fg: hsl(0, 0%, 100%);
  --border: hsl(214, 20%, 90%);
  --radius: 0.375rem;
  --gradient-hero: linear-gradient(
    135deg,
    hsl(222, 72%, 11%),
    hsl(222, 72%, 18%)
  );
  --shadow-card-hover:
    0 4px 12px 0 hsl(215 28% 17% / 0.1), 0 2px 4px -2px hsl(215 28% 17% / 0.08);
  --font-display: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --container-max: 1280px;
  --container-pad: 1.5rem;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  border: none;
}
.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.btn-cta {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
}
.btn-outline:hover {
  background: var(--secondary);
  color: var(--secondary-fg);
  opacity: 1;
}

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary);
  box-shadow: 0 2px 8px hsl(222 72% 11% / 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-fg);
}
.logo-icon {
  width: 65px;
  height: 65px;
  border-radius: var(--radius);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}
nav.desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
nav.desktop a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(210 33% 98% / 0.8);
  transition:
    color 0.2s,
    background 0.2s;
}
nav.desktop a:hover,
nav.desktop a.active {
  color: var(--primary-fg);
  background: hsl(210 33% 98% / 0.08);
}
nav.desktop a.active {
  color: var(--accent);
}
.nav-call {
  margin-left: 0.75rem;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-fg);
}
.hamburger svg {
  width: 24px;
  height: 24px;
}
nav.mobile {
  display: none;
  flex-direction: column;
  padding: 0 var(--container-pad) 1rem;
  border-top: 1px solid hsl(210 33% 98% / 0.1);
  background: var(--primary);
}
nav.mobile.open {
  display: flex;
}
nav.mobile a {
  padding: 0.6rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(210 33% 98% / 0.8);
  border-bottom: 1px solid hsl(210 33% 98% / 0.06);
}
nav.mobile a.active {
  color: var(--accent);
}
nav.mobile .btn {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}
@media (max-width: 768px) {
  nav.desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: hsl(222 72% 11% / 0.8);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}
.hero-content.compact {
  padding: 4rem var(--container-pad);
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary-fg);
  max-width: 760px;
  margin: 0 auto;
  animation: fadeUp 0.5s ease-out both;
}
.hero p {
  font-size: 1.1rem;
  color: hsl(210 33% 98% / 0.8);
  max-width: 600px;
  margin: 1rem auto 0;
  animation: fadeUp 0.5s 0.15s ease-out both;
}
.hero-cta {
  margin-top: 2rem;
  animation: fadeUp 0.5s 0.3s ease-out both;
}

/* ---- Sections ---- */
section {
  padding: 4rem 0;
}
section.bg-muted {
  background: var(--muted);
}
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg);
}
.section-heading p {
  color: var(--muted-fg);
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Cards / Grids ---- */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.card-icon {
  width: 36px;
  height: 36px;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}
.card p {
  font-size: 0.95rem;
  color: var(--fg);
}
.card .category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
}

/* ---- Product card with image ---- */
.product-card {
  padding: 0;
  overflow: hidden;
}
.product-card .img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--muted);
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover img {
  transform: scale(1.05);
}
.product-card .card-body {
  padding: 1rem;
}

/* ---- Icon SVGs inline ---- */
.icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
}

/* ---- Footer ---- */
footer {
  background: var(--primary);
  color: var(--primary-fg);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem var(--container-pad);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
footer h4.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(210 33% 98% / 0.5);
}
footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
footer ul a {
  font-size: 0.875rem;
  color: hsl(210 33% 98% / 0.7);
  transition: color 0.2s;
}
footer ul a:hover {
  color: var(--accent);
}
footer .contact-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(210 33% 98% / 0.7);
  align-items: flex-start;
}
footer .contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--secondary);
}
.footer-bottom {
  border-top: 1px solid hsl(210 33% 98% / 0.1);
  padding: 1.25rem var(--container-pad);
  text-align: center;
  font-size: 0.75rem;
  color: hsl(210 33% 98% / 0.4);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ---- Page routing ---- */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* ---- Form ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--fg);
  font-family: var(--font-body);
  transition: outline 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--secondary);
  outline-offset: -1px;
}
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Steps ---- */
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.step-card {
  text-align: center;
}

/* ---- Values list ---- */
.value-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1rem;
}
.value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ---- Filter tabs ---- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
  transition: all 0.2s;
}
.filter-tab:hover {
  background: var(--muted);
}
.filter-tab.active {
  background: var(--secondary);
  color: var(--secondary-fg);
  border-color: var(--secondary);
}

/* ---- Contact info card ---- */
.contact-card {
  text-align: center;
}
.contact-card .big-icon {
  width: 36px;
  height: 36px;
  color: var(--secondary);
  margin: 0 auto 0.75rem;
}
.contact-card .primary {
  font-weight: 600;
  font-size: 0.9rem;
}
.contact-card .secondary {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}

/* ---- Hours table ---- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.hours-table tr:last-child td {
  border-bottom: none;
}
.hours-table .time {
  text-align: right;
  color: var(--muted-fg);
}
.hours-table .highlight .time {
  color: var(--accent);
  font-weight: 700;
}

/* ---- CTA box ---- */
.cta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  padding: 2rem;
  text-align: center;
}
.cta-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cta-box p {
  color: var(--muted-fg);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.cta-box-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* ---- Vision/Mission cards ---- */
.vm-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  padding: 1.5rem;
}
.vm-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}
.vm-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ---- Toast ---- */
#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px hsl(222 72% 11% / 0.4);
  transform: translateY(120%);
  opacity: 0;
  transition:
    transform 0.35s,
    opacity 0.35s;
  max-width: 340px;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}
#toast strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 0.45s ease-out both;
}
.fade-up-1 {
  animation-delay: 0.05s;
}
.fade-up-2 {
  animation-delay: 0.1s;
}
.fade-up-3 {
  animation-delay: 0.15s;
}
.fade-up-4 {
  animation-delay: 0.2s;
}
.fade-up-5 {
  animation-delay: 0.25s;
}
.fade-up-6 {
  animation-delay: 0.3s;
}

/* ---- Map placeholder ---- */
.map-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  padding: 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.map-card p {
  color: var(--muted-fg);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.map-card .hours-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ---- Responsive Map Grid ---- */
.map-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.map-info-grid .card {
  text-align: center;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: var(--muted);
  min-height: 320px;
}

.google-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  border-radius: 8px;
  display: block;
}

/* On mobile, stack vertically */
@media (max-width: 768px) {
  .map-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---- WhatsApp Floating Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.whatsapp-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: wa-pulse 2.5s infinite;
}

.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float__btn svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: #fff;
  flex-shrink: 0;
}

.whatsapp-float__tooltip {
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float__tooltip,
.whatsapp-float__btn:focus + .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float__wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@keyframes wa-pulse {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.75);
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* ---- Form status messages ---- */
.form-status {
  display: none;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  margin-top: 0.5rem;
}
.form-status.success {
  display: block;
  background: hsl(142, 71%, 93%);
  color: hsl(142, 60%, 25%);
  border: 1px solid hsl(142, 55%, 75%);
}
.form-status.error {
  display: block;
  background: hsl(0, 80%, 95%);
  color: hsl(0, 65%, 35%);
  border: 1px solid hsl(0, 60%, 80%);
}

/* ---- Stock List Section ---- */
.stock-list-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stock-list-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.stock-category-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.25rem 1.5rem;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.stock-category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.stock-category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
}

.stock-category-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.stock-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stock-items li {
  font-size: 0.875rem;
  color: var(--fg);
  padding: 0.2rem 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--muted);
  transition:
    border-color 0.15s,
    color 0.15s;
}

.stock-items li:hover {
  border-left-color: var(--secondary);
  color: var(--secondary);
}

@media (max-width: 640px) {
  .stock-list-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .stock-list-grid {
    grid-template-columns: 1fr;
  }
}
