/* Solidis – modern, clean, responsive */
:root {
  --blue: #0a7ea4;
  --blue-dark: #065f7c;
  --blue-light: #e8f4f8;
  --gray-900: #1a1a1a;
  --gray-700: #333;
  --gray-500: #666;
  --gray-300: #ccc;
  --gray-100: #f5f5f5;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --max: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.25; margin-top: 0; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.muted { color: var(--gray-500); }
.small { font-size: .875rem; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}
.logo img { height: 40px; width: auto; }
.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: .2s;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, #f0f7fa 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: .5rem;
  color: var(--blue-dark);
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white) !important;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn-outline {
  background: transparent;
  color: var(--blue) !important;
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white) !important;
}
.btn-group { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 2.5rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 1.75rem;
  font-size: 1.6rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--gray-500); font-size: .95rem; }

/* Brands grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.brand-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 110px;
  transition: box-shadow .15s, border-color .15s;
  text-decoration: none;
  color: inherit;
}
.brand-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
  text-decoration: none;
}
.brand-item img {
  max-height: 50px;
  max-width: 100px;
  object-fit: contain;
}
.brand-item span {
  font-size: .8rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.2;
}
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.brand-filter a {
  padding: .3rem .7rem;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: .85rem;
  text-decoration: none;
}
.brand-filter a:hover,
.brand-filter a.active {
  background: var(--blue);
  color: var(--white);
}

/* Content pages */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.page-content h2 { margin-top: 1.75rem; }
.page-content ul { padding-left: 1.25rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.hours-table {
  width: 100%;
  max-width: 420px;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}
.hours-table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--gray-300);
}
.hours-table td:last-child { text-align: right; }

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: #bbb;
  padding: 2.5rem 0 0;
  margin-top: 2rem;
}
.site-footer a { color: #9cd; }
.site-footer a:hover { color: #fff; }
.site-footer h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-logo {
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-bottom: .5rem;
}
.footer-tagline { color: #888; margin: 0 0 .75rem; font-size: .9rem; }
.partner-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fc0 !important;
  margin: .25rem 0;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding: 1rem 0;
  text-align: center;
  font-size: .85rem;
  color: #777;
}

/* Admin */
.admin-body { background: #f0f2f5; }
.admin-header {
  background: var(--gray-900);
  color: #fff;
  padding: .75rem 0;
}
.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-header a { color: #9cd; margin-left: 1rem; }
.admin-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-card h2 { margin-top: 0; font-size: 1.25rem; }
table.admin-table {
  width: 100%;
  border-collapse: collapse;
}
table.admin-table th,
table.admin-table td {
  padding: .6rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}
table.admin-table th { background: var(--gray-100); font-weight: 600; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .3rem;
  font-size: .9rem;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font: inherit;
}
.form-group textarea { min-height: 160px; resize: vertical; }
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-yes { background: #d4edda; color: #155724; }
.badge-no { background: #f8d7da; color: #721c24; }
.actions a { margin-right: .5rem; }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}
.login-box {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(100% - 2rem, 380px);
}
.login-box h1 { text-align: center; margin-bottom: 1.5rem; font-size: 1.4rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero { padding: 2.5rem 0 2rem; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}


/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: #eee;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1; min-width: 200px; }
.cookie-banner a { color: #9cd; }
.cookie-banner .btn { flex-shrink: 0; }
