/* ===========================================================
   12 INDUSTRIES — Landing page (pure HTML/CSS/JS)
   =========================================================== */

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #444444;
  --ink-faint: #8a8a8a;
  --line: #dcdcdc;
  --panel: #f2f2f2;
  --panel-border: #e2e2e2;
  --accent: #b5121b; /* news red */
  --black: #111111;

  --font-display: "Michroma", "Eurostile", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 34px;
  padding-bottom: 10px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.logo__mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 0.8;
  letter-spacing: -1px;
  color: var(--black);
  position: relative;
  padding-right: 2px;
}

.logo__mark sup {
  font-size: 11px;
  top: -1.6em;
  left: 2px;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 6px;
  color: var(--black);
  padding-top: 4px;
}

.topbar__contact {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink);
  padding-top: 14px;
  white-space: nowrap;
}

.topbar__contact .sep {
  color: var(--ink-faint);
  margin: 0 18px;
}

.topbar__next {
  margin-top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #bcbcbc;
  display: grid;
  place-items: center;
  color: #555;
  transition: 0.2s;
  flex: 0 0 auto;
}

.topbar__next:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- Main grid ---------- */
.main {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 60px;
  padding-top: 6px;
}

/* ---------- Hero (left) ---------- */
.hero {
  position: relative;
}

.hero__img {
  width: 100%;
  height: 100%;
  min-height: 940px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9);
}

.hero__panel {
  position: absolute;
  left: -40px;
  top: 300px;
  width: 320px;
  background: rgba(244, 244, 244, 0.78);
  backdrop-filter: blur(2px);
  padding: 34px 34px 40px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0.5px;
  color: var(--black);
  margin: 0 0 22px;
}

.hero__copy {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 240px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 15px 22px;
  transition: 0.2s;
}

.btn:hover {
  background: #000;
  transform: translateX(2px);
}

.btn .arrow {
  transition: 0.2s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Right column ---------- */
.content {
  padding-top: 90px;
  padding-bottom: 60px;
}

.about {
  max-width: 560px;
  margin-bottom: 60px;
}

.h-label {
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
  margin: 0 0 16px;
}

.about p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-size: 15px;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ---------- Columns row ---------- */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 108px) 1fr;
  gap: 34px;
  margin-bottom: 90px;
}

.col__label {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  margin: 0 0 14px;
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thumbs a {
  display: block;
  overflow: hidden;
  background: #000;
}

.thumbs img {
  width: 108px;
  height: 88px;
  object-fit: cover;
  transition: 0.35s ease;
}

.thumbs a:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

/* ---------- News ---------- */
.news {
  min-width: 0;
}

.news__panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 22px 26px;
}

.news__item {
  padding: 6px 0 18px;
}

.news__item + .news__item {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
}

.news__date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.news__date::before {
  content: "";
  width: 9px;
  height: 11px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11'%3E%3Cpath d='M0 0h6l3 3v8H0z'/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11'%3E%3Cpath d='M0 0h6l3 3v8H0z'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0.85;
}

.news__body {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.news__body a {
  font-weight: 700;
  color: var(--black);
}

.news__body a:hover {
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.contact__map {
  width: 300px;
  opacity: 0.75;
}

.contact__info {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-top: 30px;
}

.contact__info strong {
  color: var(--ink);
  font-weight: 600;
}

.contact__info .spacer {
  height: 18px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 40px;
  color: var(--ink-faint);
  font-size: 12px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

/* ---------- Large tablet / small desktop ---------- */
@media (max-width: 1240px) {
  .main {
    gap: 40px;
  }
  .content {
    padding-top: 60px;
  }
  .cols {
    grid-template-columns: repeat(3, 96px) 1fr;
    gap: 24px;
  }
  .thumbs img {
    width: 96px;
    height: 78px;
  }
}

/* ---------- Stacked layout (tablet + mobile) ---------- */
@media (max-width: 1100px) {
  .shell {
    padding: 0 32px;
  }
  .main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Hero: image full width, panel overlaps the bottom-left of the image */
  .hero {
    margin-top: 4px;
  }
  .hero__img {
    min-height: 0;
    height: auto;
    max-height: 74vh;
  }
  .hero__panel {
    position: absolute;
    left: 0;
    right: auto;
    top: auto;
    bottom: 0;
    width: min(360px, 84%);
    margin: 0;
    background: rgba(244, 244, 244, 0.92);
  }

  .content {
    padding-top: 44px;
  }
  .about {
    max-width: none;
  }

  /* Three thumbnail columns + full-width news below */
  .cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
  }
  .thumbs img {
    width: 100%;
    height: auto;
    aspect-ratio: 108 / 88;
  }
  .news {
    grid-column: 1 / -1;
    margin-top: 12px;
  }

  .contact {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }
  .contact__map {
    width: 100%;
    max-width: 260px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .shell {
    padding: 0 20px;
  }

  /* Top bar stacks: logo, then contact line */
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
  }
  .logo__mark {
    font-size: 38px;
  }
  .logo__word {
    font-size: 21px;
    letter-spacing: 5px;
  }
  .topbar__contact {
    font-size: 11px;
    letter-spacing: 1px;
    padding-top: 0;
    white-space: normal;
    line-height: 1.8;
  }
  .topbar__contact .sep {
    margin: 0 10px;
  }
  .topbar__next {
    display: none;
  }

  /* Hero panel becomes a solid block under the image (no overlap/ghosting) */
  .hero__img {
    max-height: 60vh;
  }
  .hero__panel {
    position: static;
    width: auto;
    margin: 0 0 8px;
    padding: 26px 24px 30px;
    background: var(--panel);
  }
  .hero__title {
    font-size: 30px;
  }
  .hero__copy {
    max-width: none;
  }

  .content {
    padding-top: 32px;
    padding-bottom: 20px;
  }

  /* Keep the 3 category columns side by side, news stacks below */
  .cols {
    gap: 12px;
    margin-bottom: 44px;
  }
  .col__label {
    font-size: 14px;
  }
  .thumbs {
    gap: 4px;
  }

  .news__panel {
    padding: 18px 20px;
  }

  /* Contact stacks */
  .contact {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact__map {
    max-width: 300px;
  }
  .contact__info {
    padding-top: 0;
  }

  .footer {
    padding: 40px 0 30px;
  }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .logo__word {
    font-size: 18px;
    letter-spacing: 4px;
  }
  .hero__title {
    font-size: 26px;
  }
}
