/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 1. Full-height flex column on html/body */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* 2. Wrapper that grows to push footer down */
.site-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 3. Main content area that expands */
.site-content {
  flex: 1;
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

.site-content h1 {
  color: #002b5c;
  margin-bottom: 20px;
}

/* Header Styles */
header {
  background: #0056b3;
  color: #fff;
  padding: 20px 0;
}

/* target the actual wrapper in your HTML */
header .header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* logo + title at left */
  padding: 10px 0;              /* tweak header height if needed */
}

/* CSS-built logo */
.css-logo-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-right: 15px;           /* space between logo and title */
}

.css-logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows:    1fr 1fr;
  width: 56px;
  height: 56px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1;
}

.square {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  box-sizing: border-box;
}
.tl, .br { background: #002b5c; }
.tr, .bl { background: #000; }

/* Site title */
header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
  margin-right: 30px;           /* space between title and nav */
}

/* Nav */
header nav {
  margin-left: auto;            /* push nav to the right */
  display: flex;
  gap: 20px;                    /* uniform spacing */
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  /* removed individual margin-left */
}



/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 15px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #eee;
  color: #002b5c;
}

.tab.active {
  background: #002b5c;
  color: #fff;
}

/* Product grid */
.product-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-grid.active {
  display: grid;
}

.card {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: pointer;
}

.card h3 {
  font-size: 1.1rem;
  color: #002b5c;
  margin-bottom: 10px;
}

.specs {
  display: none;
  font-size: 0.9rem;
  color: #555;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 6px;
  overflow: auto;
}

.card:hover .specs {
  display: block;
}

/* Footer Styles */
footer {
  background: #0056b3;
  color: #fff;
  padding: 20px 0;
  margin-top: auto;  /* pushes footer to page bottom in flex layouts */
}

/* apply to both wrapper classes inside footer */
footer .container,
footer .footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;        /* uniform spacing between items */
}

footer a {
  color: #fff;
  text-decoration: none;
  /* no need for individual margin-rights if using gap */
}
