/* MonsterCapital.ca — rebuilt static site */

:root {
  --orange: #F2851F;
  --teal: #53A1AB;
  --brown: #774900;
  --black: #000000;
  --gray-bar: #f0f0f0;
  --radius-lg: 40px;
  --radius-sm: 10px;
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Mulish', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.9;
  background: #fff;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.2; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: #fff;
  padding: 40px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 44px;
}

.brand img {
  height: 62px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 44px;
  list-style: none;
}

.main-nav a {
  color: var(--orange);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}

.main-nav a:hover { color: #d06e10; }
.main-nav a.active { color: var(--black); }

.header-contact {
  text-align: left;
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.85;
}

.header-contact a { color: var(--orange); text-decoration: none; }

/* ---------- Hero (home) ---------- */

.hero {
  background: url('../images/skyline-teal.webp') center / cover no-repeat;
  color: #fff;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-text { flex: 1 1 55%; }

.hero-text h1 {
  font-size: 50px;
  margin-bottom: 28px;
}

.hero-media { flex: 1 1 45%; text-align: center; }
.hero-media img { max-width: 480px; width: 100%; }

/* ---------- Page hero (inner pages) ---------- */

.page-intro { padding: 90px 0 40px; }

.page-intro h1 {
  font-size: 50px;
  margin-bottom: 40px;
}

.page-intro h1.uppercase { text-transform: uppercase; letter-spacing: 2px; }

/* ---------- Client stories ---------- */

.stories-band {
  background: url('../images/skyline.webp') center top / cover no-repeat;
  padding: 60px 0;
}

.stories-card {
  background: var(--teal);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 70px 80px 90px;
}

.stories-card h2 {
  font-size: 44px;
  margin-bottom: 24px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  margin-top: 70px;
}

.story-grid.on-white { margin-top: 0; padding: 60px 0 90px; }

/* A final card left alone on its row sits centred rather than flush left. */
.story-grid > .story-card:last-child:nth-child(3n + 1) { grid-column: 2; }

.stories-grey { background: #f4f4f4; }

.story-card {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease;
}

.story-card:hover { transform: translateY(-6px); }

.story-card h3 {
  font-size: 24px;
  font-weight: 400;
  margin-top: 24px;
}

.story-card img {
  max-height: 260px;
  width: auto;
  max-width: 100%;
}

/* ---------- Story modal ---------- */

.story-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  z-index: 100;
  overflow-y: auto;
  padding: 40px 16px;
}

.story-modal.open { display: block; }

.story-modal-box {
  background: #fff;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.story-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: none;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
}

.story-modal-content { padding: 60px 70px 40px; }

.story-modal-content h1 {
  font-size: 40px;
  margin-bottom: 28px;
}

.story-modal-content p { margin-bottom: 24px; }

.story-modal-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding-bottom: 20px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: #d06e10; }

/* ---------- Who we are (home section) ---------- */

.who-section { padding: 90px 0; }

.who-section .container {
  display: flex;
  gap: 60px;
  align-items: center;
}

.who-section .who-photo { flex: 0 0 42%; }
.who-section .who-photo img { border-radius: var(--radius-sm); }

.who-section h2 { font-size: 44px; margin-bottom: 28px; }

.who-section .who-body { flex: 1; }

.who-section .btn { margin-top: 28px; }

/* ---------- About (who we are page) ---------- */

.about-band {
  background: #f2f2f2;
  display: flex;
  align-items: center;
  margin-top: 80px;
}

.about-photo {
  flex: 0 0 50%;
  align-self: flex-start;
  margin-top: -80px;
}

.about-photo img { display: block; width: 100%; }

.about-text {
  flex: 1;
  padding: 60px 7%;
}

.about-text h2 { font-size: 44px; margin-bottom: 24px; }
.about-text p { margin-bottom: 24px; }

.about-more {
  background: #f2f2f2;
  padding: 50px 0 40px;
}
.about-more p { margin-bottom: 24px; }

/* ---------- Affiliations ---------- */

.affiliations { padding: 40px 0 90px; }

.affiliations h2 {
  font-size: 44px;
  margin-bottom: 50px;
}

.affiliations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.affiliation-logo {
  height: 90px;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.affiliation-logo img { max-height: 90px; width: auto; }

/* ---------- Are you interested? (contact form section) ---------- */

.interested {
  background: url('../images/skyline-orange.webp') center / cover no-repeat;
  padding: 110px 0;
}

.interested .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.interested-text {
  flex: 0 0 42%;
  color: #fff;
  position: relative;
  padding: 70px 40px;
}

.interested-text.with-blob {
  padding: 90px 60px;
  z-index: 0;
}

/* The blob is drawn oversized behind the copy rather than as this box's own
   background: its shape has a deep transparent notch at the bottom left, so it
   has to overhang the text box to cover the last lines. z-index above keeps it
   behind the copy without dropping behind the section's skyline. */
.interested-text.with-blob::before {
  content: '';
  position: absolute;
  inset: -40px -30px -160px -70px;
  z-index: -1;
  background: url('../images/blob-large.png') center / 100% 100% no-repeat;
}

.interested-text h2 {
  font-size: 48px;
  margin-bottom: 18px;
}

.interested-form {
  flex: 1;
  background: var(--brown);
  padding: 56px 48px;
}

.contact-form .form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  color: #333;
  padding: 14px 16px;
  border: none;
  border-radius: 2px;
  background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #757575; }

.contact-form textarea { min-height: 190px; resize: vertical; }

.contact-form .form-submit {
  text-align: right;
  margin-top: 28px;
}

.contact-form .form-success {
  display: none;
  color: #fff;
  font-weight: 700;
  margin-top: 20px;
}

/* ---------- Contact page ---------- */

.contact-hero { padding: 90px 0 0; }

.contact-hero h1 { font-size: 50px; }

.contact-split {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 40px 0 60px;
}

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 38px;
  max-width: var(--container);
  padding: 20px 40px 20px calc(max((100vw - var(--container)) / 2 + 24px, 24px));
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 21px;
}

.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { color: var(--orange); }

.contact-item .contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fdecd9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item svg {
  width: 26px;
  height: 26px;
  fill: var(--orange);
}

.contact-map {
  flex: 0 0 44%;
  position: relative;
  min-height: 460px;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

.map-tiles {
  display: grid;
  grid-template-columns: repeat(3, 256px);
  position: absolute;
  inset: 0;
  filter: grayscale(1) brightness(1.02);
}

.contact-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  mix-blend-mode: multiply;
}

.map-tiles img { width: 256px; height: 256px; display: block; }

.map-attribution {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,.35);
  padding: 1px 8px;
  border-radius: 3px;
  z-index: 2;
}

/* ---------- Footer ---------- */

.site-footer { display: flex; flex-wrap: wrap; }

.footer-links {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding: 70px 24px 70px calc(max((100vw - var(--container)) / 2 + 24px, 24px));
  padding-left: max(calc((100vw - 1240px) / 2 + 130px), 130px);
}

.footer-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 20px;
}

.footer-links a:hover { color: var(--orange); }

.footer-cta {
  flex: 1 1 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 70px 60px;
}

.footer-cta h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
  max-width: 240px;
}

.footer-phone {
  text-align: center;
  background: url('../images/blob-small.png') center / 100% 100% no-repeat;
  padding: 45px 70px 50px;
}

.footer-phone svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-bottom: 14px;
}

.footer-phone h2 { font-size: 20px; }
.footer-phone a { color: #fff; text-decoration: none; }

.footer-bar {
  flex: 1 1 100%;
  background: var(--gray-bar);
  text-align: center;
  font-size: 16px;
  color: #444;
  padding: 20px 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .container,
  .who-section .container,
  .about-band,
  .interested .container { flex-direction: column; }

  .interested-text.with-blob::before { inset: 0; }

  .about-band { margin-top: 40px; }
  .about-photo { flex: none; width: 100%; margin-top: 0; align-self: auto; }
  .about-text { padding: 40px 24px; }

  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid > .story-card:last-child:nth-child(3n + 1) { grid-column: auto; }

  .affiliations-grid { grid-template-columns: 1fr; }

  .contact-split { flex-direction: column; }
  .contact-details { padding: 40px 24px; }
  .contact-map { flex-basis: auto; width: 100%; }

  .footer-links { padding: 50px 24px; align-items: center; }

  .story-modal-content { padding: 50px 28px 30px; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }

  .hero-text h1, .page-intro h1, .contact-hero h1 { font-size: 36px; }

  .stories-card { padding: 40px 28px 60px; }
  .stories-card h2, .who-section h2, .about-text h2,
  .affiliations h2, .interested-text h2 { font-size: 32px; }

  .story-grid { grid-template-columns: 1fr; }

  .contact-form .form-row { flex-direction: column; }

  .interested-text { padding: 50px 20px; flex-basis: auto; }
  .interested-form { padding: 36px 24px; }

  .footer-cta { flex-direction: column; text-align: center; gap: 24px; }
}
