:root {
  --red: #d60032;
  --dark: #1a1a1a;
  --gray: #666;
  --light: #f3f4f6;
  --white: #fff;
  --max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}

.logo img { height: 48px; width: auto; }

nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
}

nav a:hover { color: var(--red); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: .3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(0,0,0,.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  width: 100%;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.hero p {
  max-width: 720px;
  font-size: 1.05rem;
  opacity: .95;
}

/* Sections */
section { padding: 3.5rem 0; }

section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

#onas p {
  max-width: 800px;
  color: var(--gray);
}

.section-alt { background: var(--light); }

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--gray);
  max-width: 600px;
  margin: .5rem auto 0;
}

/* Equipment */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.equipment-item {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid var(--red);
}

.equipment-item h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
  color: var(--dark);
}

.equipment-item p {
  font-size: .9rem;
  color: var(--gray);
}

.equipment-gallery {
  margin-top: 2rem;
}

.equipment-gallery a {
  position: relative;
  aspect-ratio: 4/3;
}

.equipment-gallery a span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .6rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
}

.equipment-gallery img {
  object-fit: cover;
}

.text-list {
  max-width: 520px;
  margin: 0 auto;
  list-style: none;
  text-align: center;
}

.text-list li {
  padding: .5rem 0;
  border-bottom: 1px solid #e8e8e8;
  color: var(--dark);
  font-weight: 500;
}

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

.subsection-title {
  text-align: center;
  font-size: 1.15rem;
  margin: 2.5rem 0 1.25rem;
  color: var(--dark);
}

.subsection-title:first-of-type {
  margin-top: 0;
}

.rental-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--gray);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.qual-item {
  cursor: default;
}

.qual-detail {
  display: inline-block;
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--gray);
}

.cert-grid.qual-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .6rem;
}

.cert-grid.qual-grid .qual-item {
  padding: .85rem .45rem;
}

.cert-grid.qual-grid .cert-badge {
  font-size: 1.1rem;
  margin-bottom: .3rem;
}

.cert-grid.qual-grid .qual-item p {
  font-size: .7rem;
  line-height: 1.3;
}

.cert-grid.qual-grid .qual-detail {
  font-size: .62rem;
  margin-top: .4rem;
  line-height: 1.25;
}

/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.cert-item {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: block;
}

.cert-item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(214,0,50,.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.cert-badge {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: .5rem;
}

.cert-item p {
  font-size: .9rem;
  color: var(--gray);
}

.cert-link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
}

/* Page hero */
.page-hero {
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  font-size: 1.75rem;
  margin-bottom: .5rem;
}

.page-hero p {
  color: var(--gray);
  max-width: 700px;
}

/* Service sections */
.service-section {
  padding: 2.5rem 0;
}

.service-section h2,
.service-section h3 {
  font-size: 1.35rem;
  margin-bottom: .75rem;
  color: var(--red);
}

.service-section p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  max-width: 700px;
}

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

.gallery a {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gallery a:hover img { transform: scale(1.05); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-block { text-align: center; }

.contact-block h3 {
  color: var(--red);
  font-size: 1rem;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.contact-block p { color: var(--gray); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.5rem;
  background: rgba(0, 0, 0, .45);
  border: none;
  cursor: pointer;
  padding: .75rem 1rem;
  line-height: 1;
  border-radius: 4px;
  z-index: 2;
  transition: background .2s;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, .7);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-grid h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.footer-grid a {
  color: #ccc;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  text-align: center;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
  }

  nav.open { display: block; }
  nav ul { flex-direction: column; gap: .75rem; }

  .hero { min-height: 320px; }
  .hero h1 { font-size: 1.5rem; }

  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .cert-grid.qual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cert-grid.qual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
