/* Explicit font-size for h1 in semantic containers for standards compliance */
article h1, aside h1, nav h1, section h1 {
  font-size: 2rem;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap&font-display=swap');

/* Handrail Ball Range Section */
.range-section {
  text-align: center;
  margin: 2rem 0 1.5rem 0;
}
.range-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.range-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.range-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.range-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  /* removed invalid nested :root block */
  border-radius: 50%;
  margin-bottom: 0.5rem;
  background: #f1f1f1;
}
.range-card span {
  /* removed invalid nested header block */
  font-size: 1rem;
  color: #333;
}
.range-desc {
  font-size: 1.08rem;
  color: #444;
  margin: 1rem 0 1.2rem 0;
}
@media (max-width: 600px) {
  .site-title {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d99f00;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(26,35,126,0.10);
    text-transform: uppercase;
  }
  .range-cards {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .range-card {
    width: 90%;
    max-width: 220px;
  }
}
.container {
  max-width: 1100px;
  .action-btn {
    display: inline-block;
    background: var(--primary);
    color: #222;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: 0 6px 14px rgba(255,214,0,0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s;
  }
  .action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255,214,0,0.14);
    background: #ffe066;
    color: #222;
  }
  padding: 0 1rem;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  .catalogue-banner {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary) 60%, var(--accent) 100%);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(26,35,126,0.12);
    margin-bottom: 1rem;
  }
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: var(--primary);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 9999;
}

/* Header / Nav improvements */
.nav-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  display: none;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  background: #e9ac07;
  color: var(--accent);
  padding: 0 1.5rem;
}
.nav-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.logo-icon .site-logo {
  height: 96px;
  width: 96px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(26, 35, 126, 0.10);
}
.nav-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-title {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(233,172,7,0.10);
  text-transform: uppercase;
}
.nav-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav-toggle {
  margin-right: 1rem;
}
#site-navigation {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
#site-navigation a {
  color: #222;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 1.08rem;
  font-weight: 500;
  transition: background 0.2s;
}
#site-navigation a:focus, #site-navigation a:hover {
  background: #e9ac07;
  color: #fff;
  outline: none;
}

#site-navigation {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

#site-navigation a {
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

#site-navigation a:focus, #site-navigation a:hover {
  background: rgba(255,255,255,0.08);
  outline: none;
}

/* Core button styles */
.btn, .product-btn, .cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover, .product-btn:hover, .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26,35,126,0.12);
}

/* Hero improvements */
.hero {
  padding: 3rem 1rem;
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(207, 149, 3, 0.06);
}
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.05rem; max-width: 820px; margin: 0 auto; }
.hero .hero-cta { margin-top: 1rem; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  align-items: center;
}
.gallery-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; }

/* Product grid and cards */
.product-grid-section {
  margin: 2rem 0;
}
.catalogue-section {
  margin: 2rem 0 1rem 0;
  text-align: center;
}
.catalogue-banner {
  display: inline-block;
  background: linear-gradient(90deg, #e9ac07 60%, #fff 100%);
  color: #222;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(233,172,7,0.12);
  margin-bottom: 1rem;
}
.catalogue-banner small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  justify-items: stretch;
  align-items: stretch;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
}
@media (min-width: 1000px) {
  /* Ensure at least 3 columns on desktop */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
@media (min-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Button style for product action */
.action-btn {
  display: inline-block;
  background: #e9ac07;
  color: #222;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 6px 14px rgba(233,172,7,0.12);
  transition: background 0.2s, color 0.2s, transform 0.12s ease, box-shadow 0.12s ease;
}
.action-btn:hover, .action-btn:focus {
  background: #ffd54f;
  color: #222;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(233,172,7,0.18);
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem 0.9rem; /* tighter vertical padding */
  width: 100%;
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  margin-bottom: 0.75rem; /* smaller gap under image */
  border-radius: 50%;
  background: #f1f1f1;
}
.product-card h3 {
  margin: 0.35rem 0 0.35rem 0;
  font-size: 1.05rem;
}
.product-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0; /* reduce space between specs and actions */
  font-size: 0.98rem;
}
.product-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  transition: background 0.2s;
}
.product-btn:hover,
.product-btn:focus {
  background: var(--accent);
  color: #222;
}
.product-actions {
  margin-top: 0.45rem; /* small gap, prevents cards stretching */
  display: flex;
  justify-content: center;
}
.help-section {
  background: #f1f1f1;
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.help-section h2 {
  margin-top: 0;
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1rem;
  }
  .product-card {
    max-width: 100%;
    width: 100%;
  }
}
/* Contact details and map */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.contact-info {
  flex: 1 1 220px;
  min-width: 220px;
  font-size: 1.05rem;
}
.mapouter {
  flex: 1 1 350px;
  min-width: 220px;
  max-width: 400px;
  text-align: center;
}
.gmap_canvas iframe {
  width: 100%;
  max-width: 400px;
  height: 250px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}
@media (max-width: 900px) {
  .contact-details {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .mapouter, .contact-info {
    max-width: 100%;
  }
}
/* WhatsApp Floating Icon */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.whatsapp-float:hover, .whatsapp-float:focus {
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transform: scale(1.08);
}

/* Floating Action Buttons - WhatsApp & Call */


.floating-btns {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}
.floating-btns a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  text-decoration: none;
}
.whatsapp {
  background-color: #25D366; /* WhatsApp Green */
}
.call {
  background-color: #1DA1F2; /* Blue */
}
/* WhatsApp Floating Icon */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.whatsapp-float:hover, .whatsapp-float:focus {
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transform: scale(1.08);
}

/* styles.css for MS Handrail Balls Website */
:root {
  --primary: var(--primary); /* yellow */
  --accent: #000;     /* black */
  --bg: #fff;         /* white background */
  --text: #000;       /* black text */
  --radius: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
header {
  background: #e9ac07;
  color: var(--accent);
  padding: 0;
}
nav {
  display: flex;
  align-items: center;
  background: var(--primary);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
/* Centered site title in header for desktop */
.site-nav .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Logo image sizing inside centered logo */
.site-nav .site-logo {
  height: 60px;
  width: 60px;
  display: inline-block;
}

/* fallback nav .logo used in other contexts */
nav .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav ul li a:hover,
nav ul li a:focus {
  color: var(--accent);
}
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
}
.hero {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 1rem 2rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  background: linear-gradient(rgba(14, 13, 13, 0.82), rgba(199, 198, 197, 0.82)), url('images/handrailsballspics/ms-handrail-ball-side.webp') center/cover no-repeat;
  color: #fff;
  background-attachment: scroll;
}
.cta-btn {
  display: inline-block;
  background: #e9ac07;
  color: #222;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 1rem;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #ffd54f;
  color: #222;
}
.highlights {
  margin: 2rem 0;
}
.highlights h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.feature {
  background: #f1f1f1;
  border-radius: var(--radius);
  padding: 1.5rem;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  text-align: center;
}
.cta-section {
  text-align: center;
  margin: 2rem 0 0 0;
}
.product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.product-img {
  max-width: 320px;
  width: 80px !important;
  height: 80px !important;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.product-specs {
  flex: 1 1 150px;
}
.product-specs h2 {
  margin-top: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gallery-note {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
}
.contact-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
}
.contact-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover,
.contact-form button:focus {
  background: var(--accent);
  color: #222;
}
footer {
  background: #d7a604;
  color: #222;
  text-align: center;
  padding: 1.2rem 0 0.7rem 0;
  font-size: 1rem;
  border-top: 1px solid #e3e7fa;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  main {
    margin: 1rem;
    padding: 0.5rem;
  }
  .features {
    flex-direction: column;
    gap: 1rem;
  }
  .product-details {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .product-grid {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .product-card {
    min-width: 0;
    max-width: 100%;
    padding: 1rem 0.5rem;
  }
  .product-card img {
    width: 80px;
    height: 80px;
  }
  .about-pdf ul, .product-description-pdf ul {
    padding-left: 1.2em;
    font-size: 0.98em;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .gallery-item img {
    width: 100%;
    height: auto;
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }
  .contact-details {
    flex-direction: column;
    gap: 0.7rem;
  }
  .mapouter, .contact-info {
    max-width: 100%;
  }
  main {
    margin: 0.5rem;
    padding: 0.2rem;
  }
}

/* Mobile nav toggle styles */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  #site-navigation { display: none; flex-direction: column; gap: 0.5rem; background: transparent; }
  #site-navigation li { margin: 0.25rem 0; }
}

/* Product card hover lift */
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
