/* Brand palette: change these to restyle the whole site */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #1c4478;
  --accent-hover: #153560;
  --accent-soft: #e7eef7;
  --radius: 10px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1.25rem;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 12px;
  }

  .nav-links.open {
    display: flex;
  }
}

/* Sections */
main {
  padding: 48px 0 64px;
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
}

.page-title h1 {
  font-size: 2.25rem;
  color: var(--accent);
}

.page-title p {
  color: var(--muted);
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.card h2 {
  color: var(--accent);
}

.card p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-hover);
}

.button-light {
  background: #fff;
  color: var(--accent);
}

.button-light:hover {
  background: var(--accent-soft);
}

/* Home */
.hero {
  text-align: center;
  padding: 40px 0 56px;
}

.hero h1 {
  font-size: 2.75rem;
  color: var(--accent);
}

.hero-logo {
  width: 220px;
  margin: 0 auto;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.category-card div {
  padding: 18px 20px;
}

.category-card h3 {
  color: var(--accent);
  margin-bottom: 4px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  opacity: 0.85;
  margin: 0 0 24px;
}

/* Products */
.category {
  scroll-margin-top: 90px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.gallery img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer p {
  margin: 0;
}
