﻿/* site.css – global styles for WJ Garage */

/* Always default to light theme */
:root {
  color-scheme: light;
}

/* Reset and base */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
}

a {
  color: #0645ad;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0;
}

/* Header container full width with edge breathing room */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 0.5rem 2rem;   /* consistent breathing room */
  box-sizing: border-box;

  flex-wrap: nowrap;      /* 🚫 prevent wrapping */
  overflow: hidden;       /* ensures no spill scrollbars */
}

/* Logo */
.logo {
  height: 110px;
  width: auto;
  flex-shrink: 0;         /* logo won’t shrink */
}

/* Nav */
nav {
  margin-left: auto;
  min-width: 0;
}
nav ul.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;

  flex-wrap: nowrap;      /* 🚫 force single line */
  justify-content: flex-end;
}
nav ul.nav li {
  white-space: nowrap;    /* 🚫 prevent text from breaking */
}

/* Tablet scaling */
@media (max-width: 1024px) {
  .logo { height: 90px; }
  nav ul.nav { gap: 1rem; }
}

/* Mobile scaling */
@media (max-width: 640px) {
  .logo { height: 72px; }
  .header-container { padding: 0.5rem 1rem; }

  /* 🚧 TEMP: shrink font instead of wrapping */
  nav ul.nav li a {
    font-size: 0.9rem;
  }
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
}
.skip-link:focus{
  position:fixed;
  left:1rem; top:1rem;
  width:auto; height:auto;
  padding:.5rem .75rem;
  background:#000; color:#fff;
  border-radius:.25rem;
  clip:auto;
  z-index:1000;
}

/* Footer */
footer {
  border-top: 1px solid #ddd;
  padding: 1rem;
  font-size: 0.9em;
  color: #666;
  text-align: center;
}
