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

:root {
  --black: #111111;
  --font: 'DM Sans', sans-serif;
  --font-display: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  /* line-height: 32px; */
  color: var(--black);
}

p {
  font-size: 16px;
}

/* NAV */
nav {
  mix-blend-mode: normal;
  padding: 24px 0;
}

nav > .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo img {
  height: 48px;
  display: block;
}

nav .logo {
  position: relative;
  z-index: 300;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav ul a {
  text-decoration: none;
  color: var(--black);
  font-size: 18px;
  font-weight: 500;
  opacity: 1;
}

nav ul a:hover,
nav ul a.active {
  text-decoration: underline dotted;
  text-underline-offset: 8px;
}

/* PAGE */
.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}

.page--home    { --page-bg: linear-gradient(to bottom, #FFB07C, #FFE44D); background: var(--page-bg); }
.page--about   { --page-bg: linear-gradient(to bottom, #FF6B5B, #FFADA0); background: var(--page-bg); }
.page--work    { --page-bg: linear-gradient(to bottom, #78C8E0, #C4B4F0); background: var(--page-bg); }
.page--offer   { --page-bg: linear-gradient(to bottom, #7EC8AA, #B8E8CC); background: var(--page-bg); }
.page--contact { --page-bg: linear-gradient(to bottom, #FFB8D4, #C9B8F0); background: var(--page-bg); }

/* BUTTONS */
.btn-primary,
.btn-secondary,
.chat-toggle,
.submit-btn {
  display: inline-block;
  background: rgba(255,255,255,0);
  color: #000;
  border: 2px solid #000;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
}

.btn-primary:hover,
.btn-secondary:hover,
.chat-toggle:hover,
.submit-btn:hover {
  background: rgba(255,255,255,0.5);
}

.btn-primary:active,
.btn-secondary:active,
.chat-toggle:active,
.submit-btn:active {
  background: rgba(255,255,255,1);
}

/* HOME */
.home nav .logo {
  visibility: hidden;
}

.home nav > .nav-inner {
  justify-content: flex-end;
}

.page--home {
  padding: 0;
}

.graphic {
  display: grid;
  grid-template-columns: 445px 1fr;
  grid-template-rows: 192px auto;
}

.graphic__sky {
  grid-column: 1;
  grid-row: 1;
  width: 349px;
  align-self: start;
}

.graphic__clouds {
  grid-column: 2;
  grid-row: 1;
  width: 316px;
  align-self: start;
  margin-top: 12px;
  margin-left: -33px;
}

.graphic__title {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
}

.graphic__people {
  grid-column: 2;
  grid-row: 2;
  width: 373px;
  align-self: start;
  margin-top: 52px;
  margin-left: 52px;
}

.home-tagline {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 40px;
}

.home-ctas {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* TWO-COLUMN PAGE LAYOUT */
.page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.page-split__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 20px;
}

.page-split__right img.page-illustration {
  width: 100%;
  max-width: 480px;
  display: block;
}

/* ABOUT */
.about-heading {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 100;
  line-height: 1.1;
  margin-bottom: 24px;
}

.about-intro {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 48px;
  max-width: 540px;
}

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 540px;
}

.team-member__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.team-member__icon {
  width: 14px;
  flex-shrink: 0;
  margin-top: 4px;
}

.team-member ul {
  margin-top: 4px;
}

.team-member h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-member .role {
  font-size: 18px;
  font-weight: 500;
  opacity: 1;
  margin-bottom: 14px;
}

.team-member ul {
  list-style: none;
}

.team-member ul li {
  font-size: 16px;
  line-height: 2;
  opacity: 0.75;
}

/* Chat toggle */
.chat-toggle {
  margin-top: 32px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.chat-toggle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.chat-toggle.is-open::after {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}

.chat-panel {
  margin-top: 24px;
  display: none;
  width: 100%;
}

.chat-panel.is-open {
  display: block;
}

.chat-panel img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: block;
}

/* WORK */
.work-intro {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-intro a {
  color: var(--black);
  font-weight: 600;
}

.work-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.work-card {
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  background: rgba(255,255,255,0.25);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.work-card__overlay p {
  font-size: 48px;
  font-weight: 100;
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-placeholder {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.35;
  text-transform: uppercase;
}

/* Work modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 400;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 40px 40px;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  display: none;
  background: white;
  border-radius: 8px;
  padding: 48px;
  max-width: 1080px;
  width: 100%;
  position: relative;
}

.modal.is-open {
  display: block;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  font-family: var(--font);
  line-height: 1;
  padding: 4px;
}

.modal__close:hover {
  opacity: 0.9;
}

/* — Modal A: Bulk Barn — */
.modal-a {}

.modal__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 100;
  margin-bottom: 32px;
}

.modal-a__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 24px;
}

.modal p {
  margin-bottom: 16px;
}

.modal-a__cell {
  min-height: 120px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #999;
}

.modal-a__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-a__cell:nth-child(2) {
  background: none;
  border: none;
}

@media (max-width: 900px) {
  .modal-a__grid {
    grid-template-columns: 1fr;
  }

  .modal-a__cell:nth-child(2) {
    order: -1;
  }

  .modal-d .modal-a__cell:nth-child(1) { order: 2; }
  .modal-d .modal-a__cell:nth-child(2) { order: 1; }
  .modal-d .modal-a__cell:nth-child(3) { order: 3; }
  .modal-d .modal-a__cell:nth-child(4) { order: 5; }
  .modal-d .modal-a__cell:nth-child(5) { order: 4; }
  .modal-d .modal-a__cell:nth-child(6) { order: 7; }
  .modal-d .modal-a__cell:nth-child(7) { order: 6; }
}

/* — Modal B: Enbridge — */
.modal-b {
}

/* — Modal C: Glance — */
.modal-c {
}

/* — Modal D: OLM — */
.modal-d {}

.modal-d .modal-a__cell:nth-child(3) {
  grid-column: 1 / -1;
}

.modal-d .modal-a__cell:nth-child(4),
.modal-d .modal-a__cell:nth-child(5),
.modal-d .modal-a__cell:nth-child(6),
.modal-d .modal-a__cell:nth-child(7) {
  margin-top: 40px;
}

.modal-d .modal-a__cell:nth-child(5),
.modal-d .modal-a__cell:nth-child(7) {
  background: none;
  border: none;
}

@media (max-width: 900px) {
  .modal-d .modal-a__cell:nth-child(4),
  .modal-d .modal-a__cell:nth-child(6) {
    margin-top: 0;
  }
}

/* — Modal E: TD — */
.modal-e {}

.modal-e .modal-a__cell {
  border: none;
}

/* — Modal F: Wrigley's — */
.modal-f {
}

/* WHAT WE OFFER */
.offer-heading {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 100;
  line-height: 1.1;
  margin-bottom: 20px;
}

.offer-intro {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.offer-label {
  font-size: 18px;
  font-weight: 500;
  opacity: 1;
  margin-bottom: 20px;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  list-style: none;
  max-width: 400px;
}

.offer-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}

.offer-list li::before {
  content: '';
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: url("imgs/Checkmark.svg") center/contain no-repeat;
}

/* CONTACT */
.contact-heading {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 100;
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 440px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

input, textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #000;
  border-radius: 0;
  font-family: var(--font);
  font-size: 18px;
  background: #fff;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  border-color: #000;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input::placeholder, textarea::placeholder {
  color: #999999;
  opacity: 1;
}

.submit-btn {
  align-self: flex-start;
  margin-top: 6px;
}

.form-honeypot {
  display: none;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-message {
  display: none;
  font-size: 14px;
}

.form-message--error {
  color: #c0392b;
}

.form-message.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: 24px 0;
}

.form-success.is-visible {
  display: block;
}

.form-success p {
  font-size: 20px;
  font-weight: 200;
}

/* HAMBURGER TOGGLE */
.nav-toggle {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .page-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-split__right {
    max-width: 540px;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 300;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -40%;
    width: 40%;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 18px;
    padding-top: 80px;
    padding-right: 65px;
    background: var(--page-bg);
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 200;
  }

  nav ul.is-open {
    right: 0;
  }

  nav ul a {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.75;
  }
}

@media (max-width: 768px) {
  nav > .nav-inner {
    padding: 0 24px;
  }

  .container {
    padding: 0 24px;
  }

  /* .page--home {
    padding: 24px 0;
  } */

  .graphic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .graphic__sky {
    width: 220px;
    margin-bottom: 20px;
  }

  .graphic__clouds {
    display: none;
  }

  .graphic__title {
    grid-column: 1;
    grid-row: 2;
    width: 60%;
  }

  .graphic__people {
    grid-column: 1;
    grid-row: 4;
    width: min(373px, 85%);
    margin: 16px 0 0 0;
  }

  .page-split {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .work-page {
    padding-top: 40px;
  }

 

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

  /* .offer-list {
    grid-template-columns: 1fr 1fr;
  } */

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

  .modal {
    padding: 32px 24px;
  }

  .modal-overlay {
    padding: 60px 20px 20px;
  }
}


@media (max-width: 660px) {
  nav {
    padding-bottom: 0;
  }

  nav .logo img {
    height: 32px;
  }

  nav ul {
    width: 100%;
    right: -100%;
    padding-right: 24px;
  }

  nav ul.is-open {
    right: 0;
  }

  .graphic__title {
    width: 90%;
  }
  
  .home-ctas a{
    width: 100%;
    text-align: center;
  }

  .home_page{
    margin-bottom: 80px;
  }
}

@media (max-width: 480px) {
    h2{
      font-size: 40px!important;
    }

   .team {
    /* grid-template-columns: 1fr; */
    gap: 32px;
  }

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

  /* .offer-list {
    grid-template-columns: 1fr;
  } */

  .home-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-start;
  }

  .modal {
    border-radius: 0;
    min-height: 100vh;
  }
}
