/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  background: #f0f4f8;
  color: #333;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Palette */
:root {
  --primary: #1f4068;
  --accent: #2978b5;
  --light-bg: #e8eef1;
  --dark-text: #333333;
  --soft-white: #ffffff;
}

/* Nav */
nav {
  background: var(--primary);
  color: var(--soft-white);
  padding: 1rem 0;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--soft-white);
  text-decoration: none;
}
nav a {
  color: var(--soft-white);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
}
nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: url('/images/hero.jpg') center/cover no-repeat;
  color: var(--soft-white);
  text-align: center;
  padding: 6rem 1rem;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: auto;
  background: #ffffff;
  color: #333;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
}

/* Sections */
.section-title, .hero {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--primary);
}
.section {
  margin-bottom: 2rem;
  background: var(--soft-white);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--soft-white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}
.btn:hover {
  background: var(--primary);
}

/* Table (comparison) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: center;
}
.comparison-table th {
  background: var(--primary);
  color: var(--soft-white);
}

/* Forms */
form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
form input, form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
}
form button {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--soft-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}
form button:hover {
  background: var(--primary);
}

/* Footer */
footer {
  margin-top: auto;
  background: var(--primary); /* Match header/nav color */
  color: var(--light-bg);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* --- NEW FOOTER LINKS --- */
.footer-links {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--light-bg);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 150ms ease;
}
.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
/* --- END NEW --- */


/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
}
nav img {
  border: none;
  outline: none;
  display: block; /* Optional: removes extra space below the image */
}


/* Header tweaks: thinner and responsive */
nav {
  padding: 0.4rem 0; /* reduced height */
}
nav .container {
  gap: 1rem;
}
nav .logo img {
  max-height: 56px;
  width: auto;
  display: block;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--soft-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Product filters and grid */
.product-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}
.product-filters select {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
}

/* hide items */
.product-card.hidden { display: none !important; }

/* --- Dropdown/select visual upgrade --- */
.select-custom {
  position: relative;
  display: inline-block;
  min-width: 180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 500;
}
.select-custom select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  padding: 10px 42px 10px 14px;
  background: transparent;
  width: 100%;
  font-size: 15px;
  cursor: pointer;
  outline: none;
}
.select-custom .select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
  opacity: 0.9;
}

/* --- Products grid/cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.08);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.product-card .card-body {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.product-card p {
  margin: 0 0 10px;
  flex: 1;
  color: rgba(0,0,0,0.65);
  font-size: 14px;
}

/* inquire button */
.btn-inquire {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
  border: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

/* small screens adjustments */
@media (max-width: 720px) {
  .product-card img { height: 140px; }
}

/* subtle typography refinements */
body { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* Main Nav Bar Styling */
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;       /* thin vertical padding */
  min-height: 56px;       /* fixed banner height */
  position: relative;
  overflow: visible;      /* allow the scaled logo to overflow visually */
}

/* Logo wrapper: inline-flex to align properly */
.site-nav .logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  z-index: 3;
}

/* Make the logo image visually much larger WITHOUT increasing header height */
.site-nav .logo img {
  height: 60px;                   /* base height (keeps crispness from 250x100 source) */
  width: auto;
  display: block;
  transform-origin: left center;
  transform: scale(2.0);          /* visually ~2× larger while header container keeps min-height */
  -webkit-transform-origin: left center;
  -webkit-transform: scale(2.0);
  will-change: transform;
  -webkit-user-drag: none;
  user-select: none;
}

/* If the scaled logo overlaps nav links, ensure links are on top */
.site-nav .nav-links { z-index: 4; }

/* Link styling */
.site-nav .nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}
.site-nav .nav-link {
  padding: 6px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
}
.site-nav .nav-link:hover {
  background: rgba(0,0,0,0.04);
}

/* Hide toggle on larger screens */
.site-nav .nav-toggle { margin-left: 8px; background: none; border: 0; font-size: 20px; display: none; }

/* Responsive: reduce the visual scale on smaller screens so logo doesn't dominate */
@media (max-width: 1024px) {
  .site-nav .logo img { transform: scale(1.6); -webkit-transform: scale(1.6); }
}
@media (max-width: 820px) {
  /* Mobile menu logic */
  .site-nav .nav-links { 
    display: none; /* Hidden by default */
    position: absolute;
    top: 95%; /* Position below the header */
    right: 10px;
    background: var(--soft-white);
    color: var(--dark-text);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 10px;
    min-width: 180px;
    z-index: 2000;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav .nav-links.open {
    display: block; /* Shown when .open class is added by JS */
  }
  .site-nav .nav-links a.nav-link {
    color: var(--dark-text); /* Ensure links are readable on white bg */
  }

  .site-nav .nav-toggle { display: inline-flex; }
  /* reduce logo scale on mobile for better fit */
  .site-nav .logo img { transform: scale(1.2); -webkit-transform: scale(1.2); height: 56px; }
}
@media (max-width: 420px) {
  .site-nav .logo img { transform: scale(1.0); -webkit-transform: scale(1.0); height: 48px; }
}

/* Small safeguard: ensure main content has a little top spacing */
main.container { margin-top: 8px; }