/* =========================================================
   INNOVATIVE IDEA CREATIONS, LLC
   MAIN SITE STYLESHEET
   ========================================================= */


/* ---------- COLOR SYSTEM ---------- */

:root {
  --cream: #f4f0e7;
  --paper: #faf8f2;
  --teal: #064f52;
  --teal-dark: #033b3d;
  --rust: #9c3d20;
  --black: #171717;
  --muted: #68645d;
  --border: #d9d0c1;
}


/* ---------- RESET / GLOBAL ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 22px 4%;

  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.site-header::before {
  content: "";

  position: absolute;
  top: -82px;
  left: -62px;

  width: 220px;
  height: 300px;

  background-image:
    url("../assets/icons-patterns/iic-pattern-strip.png");

  background-repeat: repeat-y;
  background-position: center top;
  background-size: 62px auto;

  transform: rotate(42deg);
  transform-origin: center;

  pointer-events: none;
  z-index: 0;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-left: 42px;
}

.brand-mark {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: 28px;
}

.brand p {
  margin: 8px 0 0;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
}


/* ---------- NAVIGATION ---------- */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.main-nav a {
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

main {
  padding: 0 2%;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 1fr 2fr 0.8fr;
  gap: 16px;
  padding: 18px 0;
  align-items: start;
}

.hero-copy {
  padding: 20px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-copy h3 {
  margin-top: 24px;
  color: var(--rust);
  text-transform: uppercase;
  font-size: 15px;
}

.hero-copy p {
  max-width: 480px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  padding: 14px 20px;
  border-radius: 4px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 800;
}

.primary {
  color: white;
  background: var(--teal);
}

.secondary {
  color: var(--rust);
  border: 1px solid var(--rust);
}


/* ---------- HERO IMAGE ---------- */

.hero-image {
  width: 100%;
  height: 430px;
  overflow: hidden;
  border-radius: 8px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}


/* ---------- IIC WORKBENCH PANEL ---------- */

.workbench-principles {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.workbench-principles h3 {
  color: var(--teal);
  text-transform: uppercase;
}


/* =========================================================
   CATEGORY CARDS
   ========================================================= */

.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 4px 0 18px;
}

.category-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.card-image {
  width: 100%;
  height: 135px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.category-card:nth-child(1) .card-image {
  object-position: center 48%;
}

.category-card:nth-child(2) .card-image {
  object-position: center 45%;
}

.category-card:nth-child(3) .card-image {
  object-position: center 38%;
}

.category-card:nth-child(4) .card-image {
  object-fit: cover;
  object-position: center 40%;
}

.category-card:nth-child(5) .card-image {
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.category-card:nth-child(6) .card-image {
  object-fit: cover;
  object-position: center 35%;
  padding: 0;
}

.category-card h3,
.category-card p {
  padding: 0 14px;
}

.category-card h3 {
  margin-bottom: 5px;
  text-transform: uppercase;
}

.category-card p {
  margin-top: 0;
  color: var(--muted);
}


/* =========================================================
   FEATURED RŪTS PROJECT
   ========================================================= */

.featured {
  position: relative;

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;

  padding: 22px 22px 22px 58px;

  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 9px;

  overflow: hidden;
}

.featured-pattern {
  position: absolute;

  top: 10px;
  bottom: 10px;
  left: 0px;

  width: 72px;

  background-image:
    url("../assets/icons-patterns/iic-pattern-strip.png");

  background-repeat: repeat-y;
  background-position: center top;
  background-size: 72px auto;

  border-radius: 4px;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-copy h2 {
  margin: 6px 0 14px;
  color: var(--rust);
  text-transform: uppercase;
}

.featured-copy h4 {
  margin: 15px 0 4px;
  color: var(--teal);
  text-transform: uppercase;
}

.featured-copy p {
  margin: 0;
  line-height: 1.45;
}

.featured-copy > p:first-of-type {
  max-width: 520px;
  margin-bottom: 4px;
}

.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
}

.featured .eyebrow {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.featured-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   ABOUT THE WORKSHOP
   ========================================================= */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin: 18px 0;
  align-items: start;
}

.about-copy {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.about h2 {
  color: var(--teal);
  text-transform: uppercase;
}

.about-copy p {
  line-height: 1.5;
}


/* ---------- OOIC PROCESS ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  padding-top: 10px;

  border-top: 2px solid var(--teal);
}

.process-item img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.process-item span {
  text-align: center;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}


/* ---------- WORKING PHOTO ---------- */

.workshop-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.workshop-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 72% center;
}


/* =========================================================
   PLACEHOLDER SUPPORT
   ========================================================= */

.image-placeholder {
  min-height: 300px;

  display: grid;
  place-items: center;

  padding: 20px;

  text-align: center;

  border: 2px dashed var(--border);

  background:
    linear-gradient(
      135deg,
      #ded8cc,
      #eee8dc
    );

  color: var(--muted);
  font-weight: bold;
  letter-spacing: 1px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;

  padding: 25px 5%;

  color: white;
  background: var(--teal-dark);
}

footer p {
  margin-bottom: 0;
}

.footer-motto {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: bold;
  line-height: 1.5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .hero {
    grid-template-columns: 1fr 1.5fr;
  }

  .workbench-principles {
    grid-column: 1 / -1;
  }

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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 16px;
  }

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

  .hero-image {
    height: 320px;
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured {
    grid-template-columns: 1fr;
    padding-left: 40px;
  }

  .featured-pattern {
    width: 20px;
    background-size: 20px auto;
  }

  .featured-image {
    height: 280px;
  }

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

  .workshop-image {
    height: 300px;
  }

  .process-item img {
    width: 36px;
    height: 36px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 440px) {

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

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-mark {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .brand h1 {
    font-size: 23px;
  }
}
