/* Brand: change these to restyle the whole site */
:root {
  --accent: #16a4a6;
  --accent-dark: #0f7f81;
  --text: #212529;
  --muted: #6c757d;
  --line: #e5e9eb;
  --bg-soft: #f5f7f8;
  --footer: #282828; /* matches the background baked into img/logo-light.jpg */
  --radius: 8px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg-soft);
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header: category links | logo | page links */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .08); }
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 20px; }
.nav { display: flex; gap: 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.nav a { white-space: nowrap; }
.nav-right { justify-content: flex-end; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.logo img { height: 48px; width: auto; }

/* Banner: photo under a teal tint so the white title stays readable */
.hero { background: #0d4d66 center / cover; color: #fff; text-align: center; padding: 90px 20px; }
.hero h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: 1px; text-shadow: 0 2px 12px rgb(0 0 0 / .3); }
.hero-products { background-image: linear-gradient(rgb(13 77 102 / .6), rgb(13 77 102 / .6)), url(img/hero-products.jpg); }
.hero-about { background-image: linear-gradient(rgb(13 77 102 / .6), rgb(13 77 102 / .6)), url(img/hero-about.jpg); }
.hero-contact { background-image: linear-gradient(rgb(13 77 102 / .6), rgb(13 77 102 / .6)), url(img/hero-contact.jpg); }

.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.breadcrumb .container { padding-block: 12px; }
.breadcrumb a:hover { color: var(--accent); }

main.container { padding-block: 30px 60px; }

/* Catalog: sidebar + card grid */
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.sidebar { background: #fff; border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar h2 { font-size: 20px; margin: 0 0 12px; }
.sidebar ul { list-style: none; margin: 0 0 24px; padding: 0; }
.cat-list a { display: block; padding: 10px 14px; margin-bottom: 6px; border-radius: 6px; background: var(--bg-soft); font-size: 14px; }
.cat-list a:hover { background: var(--accent); color: #fff; }
.new-list a { display: flex; align-items: center; gap: 12px; padding: 8px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.new-list a:hover { border-color: var(--accent); }
.new-list img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); margin-bottom: 40px; }
.section-title { font-size: 22px; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; text-align: center; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .08); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.card h3 { font-size: 15px; text-transform: uppercase; margin: 14px 0 6px; }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: 13px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.card .btn { align-self: center; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); }

/* Generic white content box */
.panel { background: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.panel h2 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile { align-items: center; }
.profile img { width: 100%; border-radius: 6px; }

/* Product detail */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product img { width: 100%; border-radius: var(--radius); }
.product h1 { margin: 0 0 8px; font-size: 28px; }
.specs { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.specs th { width: 40%; color: var(--muted); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* About / contact */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stats strong { display: block; font-size: 32px; color: var(--accent); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list a { color: var(--accent); }

/* Footer */
.site-footer { background: var(--footer); color: #cfd4d6; font-size: 14px; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-logo { width: 200px; height: auto; margin-bottom: 12px; }
.copyright { border-top: 1px solid #444; margin: 40px 0 0; padding: 16px 20px; text-align: center; font-size: 13px; }

/* Floating contact buttons */
.float-contact { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; flex-direction: column; gap: 8px; }
.float-contact a { background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; text-align: center; box-shadow: 0 4px 12px rgb(0 0 0 / .15); }
.float-contact a:hover { background: var(--accent-dark); }

/* Stack the header before the two menus run out of room beside the logo */
@media (max-width: 1100px) {
  .site-header { position: static; }
  .site-header .container { grid-template-columns: 1fr; justify-items: center; padding-block: 12px; gap: 8px; }
  .logo { order: -1; }
  .logo img { height: 40px; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12px; }
}

@media (max-width: 900px) {
  .catalog, .product, .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section[id] { scroll-margin-top: 16px; }
  .hero { padding: 50px 20px; }
}
