:root {
  --primary: #004b23;
  --accent: #70e000;
  --dark: #2b2d42;
  --light: #e5e5e5;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray: #6c757d;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 32px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: #1a1a1a;
  background-color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--dark);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
}

.nav a {
  color: white;
  margin-left: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path fill="none" stroke="white" stroke-width="0.6" d="M20,20 L80,20 M20,40 L80,40 M20,60 L80,60 M20,80 L80,80 M40,20 L40,80 M60,20 L60,80"/></svg>');
  background-repeat: repeat;
  background-size: 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: black;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(112, 224, 0, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
}

/* Category Cards */
.categories {
  background: var(--gray-light);
}

.category-card {
  display: block;
  background: white;
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.category-card .icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.category-card span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.category-card.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Why Us */
.why-us {
  background: var(--white);
}

.benefit {
  text-align: center;
  padding: 20px;
}

.benefit i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.benefit h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.benefit p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
}

.cta .btn-primary:hover {
  background: var(--accent);
  color: black;
  box-shadow: 0 8px 20px rgba(112, 224, 0, 0.4);
}

/* Footer */
.footer {
  background: var(--dark);
  color: #ddd;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer h3, .footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer i {
  width: 24px;
  margin-right: 8px;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #aaa;
}

/* ===== PRODUCT CARD (LIGHTING PAGE) ===== */
.product-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent);
  transition: 0.4s ease;
}
.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.product-card:hover::after {
  width: 100%;
}
.product-card img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s ease;
}
.product-card:hover img {
  transform: scale(1.08);
}
.product-card h5 {
  margin-top: 15px;
  font-weight: 700;
  font-size: 1.2rem;
}
.product-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}
.product-card small {
  font-size: 0.8rem;
  color: #999;
}

/* ===== HOMEPAGE-ONLY STYLES ===== */
.homepage .featured {
  padding: 80px 0;
}
.homepage .product-card-featured {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.homepage .product-card-featured .product-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--gray-light);
}
.homepage .product-card-featured .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.homepage .product-card-featured:hover .product-image img {
  transform: scale(1.05);
}
.homepage .product-card-featured .product-info {
  padding: 24px;
}
.homepage .product-card-featured .product-info h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.homepage .product-card-featured .product-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.homepage .link-arrow {
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.homepage .link-arrow:hover {
  color: var(--accent);
  gap: 0.75rem;
}

/* Modal (unchanged) */
.modal-custom {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}
.modal-content-custom {
  background: white;
  margin: 5% auto;
  padding: 30px;
  width: 80%;
  max-width: 800px;
  border-radius: 28px;
  position: relative;
  animation: luxuryModal 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}
.close-btn:hover {
  color: var(--accent);
}
.modal-content-custom img {
  width: 100%;
  max-width: 400px;
  margin: 20px 0;
  border-radius: 12px;
}
.modal-content-custom h2 {
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-content-custom ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.modal-content-custom li {
  margin-bottom: 5px;
}

@keyframes luxuryModal {
  from {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 250px;
  }
  section {
    padding: 50px 0;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .category-card {
    padding: 20px 12px;
  }
  .homepage .product-card-featured .product-info {
    padding: 20px;
  }
  .footer {
    text-align: center;
  }
  .footer .row > div {
    margin-bottom: 30px;
  }
  .modal-content-custom {
    width: 95%;
    padding: 20px;
  }
}

/* ===== CONTACT PAGE STYLES (scoped) ===== */
.contact-page .contact-hero {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 100px 0 80px;
    text-align: center;
    color: white;
}

.contact-page .contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-page .contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-page .contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-page .contact-info {
    background: var(--gray-light);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
}

.contact-page .contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.contact-page .info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-page .info-item i {
    font-size: 1.8rem;
    color: var(--accent);
    width: 40px;
    margin-top: 4px;
}

.contact-page .info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.contact-page .info-item p {
    color: var(--gray);
    margin-bottom: 0;
}

.contact-page .info-item a {
    color: var(--gray);
    text-decoration: none;
}

.contact-page .info-item a:hover {
    color: var(--accent);
}

.contact-page .contact-form-wrapper {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-page .contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.contact-page .contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-page .contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    transition: border 0.3s;
}

.contact-page .contact-form input:focus,
.contact-page .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(112, 224, 0, 0.1);
}

.contact-page .contact-form button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.contact-page .map-section {
    padding: 0 0 80px 0;
}

.contact-page .map-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .contact-page .contact-hero h1 {
        font-size: 2.2rem;
    }
    .contact-page .contact-section {
        padding: 50px 0;
    }
    .contact-page .contact-info,
    .contact-page .contact-form-wrapper {
        padding: 30px;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;   /* match your desired size */
    width: auto;
    margin-right: 10px;
}

/* ===== ABOUT PAGE STYLES (scoped) ===== */
.about-page .about-hero {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 100px 0 80px;
    text-align: center;
    color: white;
}
.about-page .about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.about-page .about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.about-page .about-story,
.about-page .about-commitment {
    padding: 80px 0;
}
.about-page .about-values {
    background: var(--gray-light);
    padding: 80px 0;
}
.about-page .value-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.about-page .value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.about-page .value-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.about-page .value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.about-page .value-card p {
    color: var(--gray);
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .about-page .about-hero h1 {
        font-size: 2.2rem;
    }
    .about-page .about-story,
    .about-page .about-values,
    .about-page .about-commitment {
        padding: 50px 0;
    }
}

.download-link {
    color: #ddd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.download-link:hover {
    color: var(--accent);
}
.download-link i {
    font-size: 1.1rem;
}

/* Hero background image – homepage only (no green tint) */
.homepage .hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)), url('../assets/img/branding/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* optional, remove if unwanted */
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-nav .nav-link {
    color: white !important;
}
.navbar-nav .nav-link:hover {
    color: var(--accent) !important;
}

/* Adjust card margins on mobile */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 20px;
        padding: 15px;
    }
    .product-card h5 {
        font-size: 1rem;
    }
    .product-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .modal-content-custom {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
        max-height: 85vh;
    }
    .modal-content-custom img {
        max-width: 100%;
    }
}

.btn, .category-card, .product-card, .nav-link {
    touch-action: manipulation; /* improves responsiveness on touch screens */
}

@media (max-width: 768px) {
    body {
        font-size: 16px; /* instead of browser default */
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .hero-text h1 { font-size: 2rem; }
}

/* Navbar toggler styling */
.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-nav .nav-link {
    color: white !important;
}
.navbar-nav .nav-link:hover {
    color: var(--accent) !important;
}

/* Adjust product card margins on mobile */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 20px;
        padding: 15px;
    }
    .product-card h5 {
        font-size: 1rem;
    }
    .product-card p {
        font-size: 0.85rem;
    }
}

/* Mobile modal improvements */
@media (max-width: 768px) {
    .modal-content-custom {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
        max-height: 85vh;
    }
    .modal-content-custom img {
        max-width: 100%;
    }
}

/* ===== FASTENERS PAGE STYLES ===== */
.fasteners-hero {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 100px 0 80px;
    text-align: center;
    color: white;
}
.fasteners-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.fasteners-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.fasteners-coming-soon {
    padding: 80px 0;
    background: var(--white);
}
.fasteners-coming-soon h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.fasteners-coming-soon .lead {
    font-size: 1.1rem;
    color: var(--gray);
}
.fasteners-preview {
    background: var(--gray-light);
    padding: 80px 0;
}
.fastener-category-card {
    background: white;
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.fastener-category-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.fastener-category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.fastener-category-card span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}
.fastener-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
    .fasteners-hero h1 {
        font-size: 2rem;
    }
    .fasteners-hero p {
        font-size: 1rem;
    }
    .fasteners-coming-soon,
    .fasteners-preview {
        padding: 50px 0;
    }
    .fastener-category-card {
        padding: 20px 12px;
    }
}

/* ===== HOMEPAGE HERO WITH CATEGORY CARDS ===== */
.hero-with-categories {
    min-height: auto;
    padding: 80px 0 60px;
}
.hero-with-categories .category-showcase {
    margin-top: 40px;
}
.hero-with-categories .category-card-image {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.hero-with-categories .category-card-image:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.hero-with-categories .category-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.hero-with-categories .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-with-categories .category-card-image:hover .category-image img {
    transform: scale(1.05);
}
.hero-with-categories .category-card-image h3 {
    font-size: 1.2rem;
    margin: 1rem 1rem 0.5rem;
    font-weight: 600;
}
.hero-with-categories .category-card-image p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0 1rem 0.5rem;
}
.hero-with-categories .link-arrow {
    display: inline-block;
    margin: 0 1rem 1rem;
    font-weight: 500;
    color: var(--primary);
}
.hero-with-categories .link-arrow:hover {
    color: var(--accent);
}
@media (max-width: 768px) {
    .hero-with-categories .category-image {
        height: 120px;
    }
    .hero-with-categories .category-card-image h3 {
        font-size: 1rem;
        margin: 0.75rem 0.75rem 0.25rem;
    }
    .hero-with-categories .category-card-image p {
        font-size: 0.75rem;
        margin: 0 0.75rem 0.5rem;
    }
    .hero-with-categories .link-arrow {
        margin: 0 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
}