/* ITW India: styles. Colours are approximated from itw.com screenshots; edit the variables to match brand guidelines. */

:root {
  --brand: #a01d42;
  --brand-dark: #7a1230;
  --blue: #0b5e98;
  --ink: #222;
  --mute: #555;
  --gray: #404040;
  --line: #e2e2e2;
  --alt: #f4f4f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

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

a {
  color: var(--blue);
}

.wrap {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 72px);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  padding: 8px;
  z-index: 99;
}

header {
  background: #fff;
  position: relative;
  z-index: 20;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 105px;
}

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

nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

nav li {
  position: relative;
}

nav > ul > li > a {
  display: block;
  padding: 34px 0 10px;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

nav > ul > li > a:hover,
nav > ul > li > a.on {
  color: var(--brand);
  border-color: var(--brand);
}

.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  background: #fff;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

li:hover > .sub,
li:focus-within > .sub {
  display: block;
}

.sub a {
  display: block;
  padding: 9px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.sub a:hover {
  color: var(--brand);
}

.sub a:hover::before {
  content: "/ ";
  color: var(--brand);
}

#menu {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--brand);
}

.hero,
.banner {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #555;
}

.hero {
  min-height: 530px;
}

.banner {
  min-height: 260px;
}

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

.hero::before,
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,var(--brand-dark),var(--brand));
  clip-path: polygon(0 0,33% 0,13% 100%,0 100%);
  z-index: 1;
}

.hero .in,
.banner .in {
  position: relative;
  z-index: 2;
  padding-top: 130px;
}

.banner .in {
  padding-top: 80px;
  padding-bottom: 50px;
}

.hero h1,
.banner h1 {
  font-size: clamp(2.2rem,5vw,3.4rem);
  font-weight: 300;
  margin: 0 0 20px;
  line-height: 1.1;
}

.hero p.sub-h {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  max-width: 520px;
  margin: 0;
}

.tabs {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 22px;
}

.tabs .wrap {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.tab {
  position: relative;
  background: #fff;
  border-bottom: 4px solid var(--brand);
  text-align: center;
  padding: 24px 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.tab::before {
  content: "+";
  position: absolute;
  top: -16px;
  left: 50%;
  margin-left: -16px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.3rem;
}

.tab:hover {
  background: var(--alt);
}

section {
  padding: 60px 0;
}

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

.intro p {
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: #333;
}

.center {
  text-align: center;
}

.btn {
  display: inline-block;
  border: 2px solid var(--brand);
  color: var(--brand);
  background: #fff;
  padding: 12px 38px;
  text-transform: uppercase;
  font: 700 .8rem/1.2 inherit;
  font-family: inherit;
  text-decoration: none;
  transform: skewX(-12deg);
  cursor: pointer;
}

.btn span {
  display: inline-block;
  transform: skewX(12deg);
}

.btn:hover {
  background: var(--brand);
  color: #fff;
}

h2.blue {
  color: var(--blue);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 0 0 20px;
}

h2 {
  font-weight: 400;
  color: var(--ink);
  font-size: 2rem;
  margin: 0 0 14px;
}

.stories {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.stories > * {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.stories img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.st-big {
  grid-row: span 2;
}

.st-t {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(rgba(0,0,0,.55),transparent);
}

.quote {
  background: linear-gradient(160deg,var(--brand-dark),#c92b4b);
  color: #fff;
  padding: 30px;
  font-style: italic;
  font-size: 1.1rem;
  border: 0;
}

.quote b {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.st-btn {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 24px;
  margin-top: 28px;
}

.card {
  border: 1px solid var(--line);
  background: #fff;
  border-bottom: 4px solid var(--brand);
}

.card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.card div {
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--mute);
  font-size: .95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  margin-top: 28px;
  text-align: center;
}

.stats b {
  display: block;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--brand);
}

.box {
  border: 1px solid var(--line);
  padding: 22px;
  background: #fff;
  margin-bottom: 18px;
}

.box h3 {
  margin: 0 0 6px;
}

form label {
  display: block;
  font-weight: 700;
  margin: 14px 0 4px;
  font-size: .9rem;
}

input,
textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid #bbb;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue);
}

.hp {
  position: absolute;
  left: -9999px;
}

#msg {
  margin-top: 14px;
  font-weight: 700;
}

iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

footer {
  background: var(--gray);
  color: #fff;
  padding: 40px 0 30px;
  font-size: .85rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

footer img {
  height: 38px;
  width: auto;
}

footer a {
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 28px;
}

footer a:hover {
  text-decoration: underline;
}

.fr {
  text-align: right;
}

.soc a {
  display: inline-block;
  margin: 18px 0 0 12px;
  width: 30px;
  height: 30px;
  line-height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  text-align: center;
  font-weight: 700;
  text-transform: none;
  font-size: .75rem;
}

@media (max-width: 900px) {
  #menu {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 105px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px clamp(20px, 4vw, 72px);
    box-shadow: 0 8px 14px rgba(0,0,0,.1);
  }

  nav.open {
    display: block;
  }

  nav > ul {
    flex-direction: column;
    gap: 0;
  }

  nav > ul > li > a {
    padding: 12px 0;
    border: 0;
  }

  .sub {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0 0 6px 14px;
  }

  .tabs {
    position: static;
    background: #fff;
    padding: 36px 0 10px;
  }

  .tabs .wrap {
    grid-template-columns: 1fr;
  }

  .tab {
    border: 1px solid var(--line);
    border-bottom: 4px solid var(--brand);
  }

  .hero {
    min-height: 0;
  }

  .hero .in {
    padding: 60px 0;
  }

  .stories {
    grid-template-columns: 1fr;
  }

  .st-big {
    grid-row: auto;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .fr {
    text-align: left;
  }

  footer a {
    margin: 0 18px 0 0;
  }

}

/* Long-form text (privacy statement) */
.prose {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 36px 0 8px;
  color: var(--brand);
}

.prose h4 {
  font-size: 1.05rem;
  margin: 20px 0 6px;
}

.prose p,
.prose li {
  color: #333a4d;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
}