/* ================================================================
   Industrial Rig Lighting -- irlighting.com
   Design system: dark anchors, condensed type, hard corners
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500&display=swap');

:root {
  --color-red:   #e30022;
  --color-dark:  #333333;
  --color-white: #ffffff;
  --color-light: #f4f4f4;
  --color-mid:   #888888;
  --color-black: #1a1a1a;
  --color-panel: #222222;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-dark);
  background: var(--color-white);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* --- Hard corners everywhere: no border-radius on structural elements --- */
.cat-card,
.product-card,
.product-img,
.sidebar-block,
.thank-you-box,
.thank-you-wrap,
.footer-cta-band,
.page-hero,
.hero { border-radius: 0; }

/* --- Layout ----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  line-height: 1;
  text-decoration: none;
}

.btn-red { background: var(--color-red); color: var(--color-white); }
.btn-red:hover { background: #bf001d; }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn-lg  { padding: 16px 44px; font-size: 1.1rem; }
.btn-full { display: block; width: 100%; text-align: center; }

/* --- Badge tags ------------------------------------------- */
.badge {
  display: inline-block;
  padding: 3px 9px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  line-height: 1.6;
}

.badge-light {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
}

.badge-cred {
  border: 1px solid rgba(227,0,34,0.35);
  color: var(--color-red);
  background: rgba(227,0,34,0.05);
}

.badge-outlined {
  border: 1px solid var(--color-red);
  color: var(--color-dark);
  background: var(--color-white);
}

/* =================================================================
   HEADER / NAVIGATION
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-dark);
  border-bottom: 3px solid var(--color-red);
}

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

.nav-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.12s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-white); }

.nav-cta { margin-left: 8px; }

/* hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  line-height: 0;
}

.nav-mobile {
  display: none;
  background: var(--color-panel);
  border-top: 1px solid #3a3a3a;
}
.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 15px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid #333;
  transition: color 0.12s;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--color-white); }
.nav-mobile a.btn-red { color: var(--color-white); }
.nav-mobile a:last-child { border-bottom: none; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  background-color: var(--color-black);
  background-image:
    repeating-linear-gradient(
      -58deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.018) 20px,
      rgba(255,255,255,0.018) 21px
    ),
    linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.72)),
    url('../img/environment/hero-offshore-platform.jpg');
  background-size: auto, auto, cover;
  background-position: center, center, center right;
  background-attachment: scroll, scroll, fixed;
  padding: 96px 0 80px;
  border-bottom: 4px solid var(--color-red);
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--color-white);
  text-transform: uppercase;
  max-width: 820px;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.58);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.55;
}

/* =================================================================
   SECTIONS (shared)
   ================================================================= */
.section { padding: 72px 0; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-rule {
  width: 44px;
  height: 3px;
  background: var(--color-red);
  margin-bottom: 40px;
}

/* =================================================================
   HOMEPAGE: CATEGORY TEASERS
   ================================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #d8d8d8;
}

.cat-card {
  padding: 32px 28px 28px;
  border-right: 1px solid #d8d8d8;
  position: relative;
  transition: background 0.12s;
}
.cat-card:last-child { border-right: none; }

.cat-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--color-red);
  margin-bottom: 22px;
}

.cat-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.cat-card p {
  font-size: 0.875rem;
  color: var(--color-mid);
  line-height: 1.55;
  margin-bottom: 20px;
}

.cat-card a.cat-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
}
.cat-card a.cat-link::after { content: '\00a0\2192'; }
.cat-card:hover { background: var(--color-light); }

/* =================================================================
   HOMEPAGE: WHY IRL
   ================================================================= */
.why-band {
  background: var(--color-dark);
  padding: 60px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.why-item {
  padding: 0 44px 0 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 44px;
}
.why-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.why-overline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 8px;
}

.why-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 10px;
}

.why-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* =================================================================
   HOMEPAGE: CERTIFICATIONS STRIP
   ================================================================= */
.cert-band {
  background: var(--color-white);
  padding: 36px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.cert-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mid);
  flex-shrink: 0;
  margin-right: 6px;
}

/* =================================================================
   HOMEPAGE: FOOTER CTA BAND
   ================================================================= */
.footer-cta-band {
  background: var(--color-dark);
  border-top: 3px solid var(--color-red);
  padding: 80px 0;
  text-align: center;
}

.footer-cta-band h2 {
  color: var(--color-white);
  text-transform: uppercase;
  max-width: 620px;
  margin: 0 auto 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.footer-cta-band p {
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
  font-size: 0.925rem;
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: var(--color-black);
  border-top: 1px solid #252525;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  height: 26px;
  filter: brightness(0) invert(0.35);
}

.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.12s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.65); }

.footer-copy {
  text-align: right;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
}

/* =================================================================
   PAGE HERO (Products, Contact)
   ================================================================= */
.page-hero {
  background-color: var(--color-dark);
  background-image:
    repeating-linear-gradient(
      -58deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.018) 20px,
      rgba(255,255,255,0.018) 21px
    );
  background-size: auto;
  background-position: center;
  padding: 52px 0;
  border-bottom: 3px solid var(--color-red);
}

.page-hero h1 {
  color: var(--color-white);
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 1.55;
}

/* =================================================================
   PRODUCTS PAGE
   ================================================================= */
.products-body { padding: 60px 0; }

.cat-section {
  padding-bottom: 64px;
  margin-bottom: 0;
  border-bottom: 1px solid #e2e2e2;
}
.cat-section:last-child { border-bottom: none; padding-bottom: 0; }
.cat-section + .cat-section { padding-top: 64px; }

.cat-section-head { margin-bottom: 32px; }

.cat-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.cat-section-rule {
  width: 36px;
  height: 3px;
  background: var(--color-red);
  margin-top: 8px;
}

/* product grid: 1px lines as grid gaps */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: #d8d8d8;
  border: 1px solid #d8d8d8;
}

.product-card {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
}

.product-img {
  background-color: #1c1c1c;
  background-image:
    repeating-linear-gradient(
      -58deg,
      transparent,
      transparent 12px,
      rgba(255,255,255,0.025) 12px,
      rgba(255,255,255,0.025) 13px
    );
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
}

.product-img--photo {
  background: #f0f0f0;
  background-image: none;
}

.product-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 12px;
}

.product-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--color-dark);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--color-mid);
  line-height: 1.5;
  flex: 1;
}

.product-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-action { margin-top: 4px; }

/* --- Single-product horizontal layout ------------------------------ */
.product-solo {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid #d8d8d8;
  background: var(--color-white);
}

.product-solo-img {
  background-color: #1c1c1c;
  background-image:
    repeating-linear-gradient(
      -58deg,
      transparent,
      transparent 12px,
      rgba(255,255,255,0.025) 12px,
      rgba(255,255,255,0.025) 13px
    );
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-solo-img.product-img--photo {
  background: #f0f0f0;
  background-image: none;
}

.product-solo-img.product-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 32px;
}

.product-solo-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid #d8d8d8;
}

.product-solo-body .product-name { font-size: 1.4rem; }
.product-solo-body .product-desc { font-size: 0.925rem; max-width: 520px; }
.product-solo-body .btn         { align-self: flex-start; }

@media (max-width: 640px) {
  .product-solo {
    grid-template-columns: 1fr;
  }
  .product-solo-img { min-height: 200px; }
  .product-solo-body {
    border-left: none;
    border-top: 1px solid #d8d8d8;
    padding: 24px;
  }
}

/* =================================================================
   CONTACT / QUOTE PAGE
   ================================================================= */
.contact-body { padding: 64px 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.form-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.925rem;
  color: var(--color-dark);
  background: var(--color-white);
  border: 2px solid #ccc;
  border-radius: 0;
  appearance: none;
  outline: none;
  transition: border-color 0.12s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(227,0,34,0.12);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.required-note {
  font-size: 0.78rem;
  color: var(--color-mid);
  margin-bottom: 20px;
}

/* sidebar */
.contact-sidebar {}

.sidebar-block {
  background: var(--color-light);
  border-left: 3px solid var(--color-red);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-block h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.sidebar-block p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

.sidebar-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

/* thank you state */
.thank-you-wrap {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0;
}

.thank-you-box {
  background: var(--color-dark);
  background-image:
    repeating-linear-gradient(
      -58deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.02) 20px,
      rgba(255,255,255,0.02) 21px
    );
  padding: 56px 48px;
  border-top: 4px solid var(--color-red);
}

.thank-you-box h2 {
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.thank-you-box p {
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  font-size: 0.925rem;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { border-bottom: 1px solid #d8d8d8; }
  .cat-card:nth-child(2) { border-right: none; }
  .cat-card:nth-child(3) { border-right: 1px solid #d8d8d8; }
  .cat-card:nth-child(3),
  .cat-card:nth-child(4) { border-bottom: none; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .why-item {
    padding: 28px 0;
    margin-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .why-item:last-child { border-bottom: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { border-right: none; border-bottom: 1px solid #d8d8d8; }
  .cat-card:last-child { border-bottom: none; }
}
