/* ==========================================================
   Matt Stroud | mattjstroud.com
   Recreated from the approved design reference (1524px wide).
   Desktop sizes are written in reference pixels: calc(N * var(--u)).
   At 1524px wide and up, 1u = 1px. Below that, everything scales.
   Under 900px the page switches to a stacked phone/tablet layout.
   ========================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --u: min(calc(100vw / 1524), 1px);
  --black: #000;
  --white: #fff;
  --red: #FF0302;
  --cyan: #14B0D8;
  --boney: #9D9EA0;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.frame { position: relative; width: calc(1524 * var(--u)); margin: 0 auto; }

/* Red square section labels */
.label {
  display: flex; align-items: center; justify-content: center;
  width: calc(76 * var(--u)); height: calc(66 * var(--u));
  background: var(--red); color: var(--white);
  border-radius: calc(10 * var(--u));
  font-weight: 900; font-size: calc(29 * var(--u)); letter-spacing: -0.02em; line-height: 1;
}

/* ==========================================================
   DESKTOP AND TABLET LANDSCAPE (900px and up)
   ========================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(850 * var(--u)); overflow: hidden; background: var(--black); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .22); }
.hero-frame { height: 100%; }

.logo {
  position: absolute; left: calc(118 * var(--u)); top: calc(58 * var(--u));
  display: flex; align-items: center; gap: calc(27 * var(--u));
  text-decoration: none; color: var(--white); white-space: nowrap;
}
.logo-mark { display: block; width: calc(81 * var(--u)); height: calc(67 * var(--u)); }
.logo-text { font-weight: 800; font-size: calc(22 * var(--u)); letter-spacing: -0.03em; line-height: 1; }

.hero-title {
  position: absolute; left: calc(111 * var(--u)); top: calc(199 * var(--u));
  font-weight: 700; font-size: calc(63 * var(--u)); line-height: calc(64.5 * var(--u));
  letter-spacing: -0.04em; color: var(--white);
}
.hl { display: block; white-space: nowrap; }

.hero-sub {
  position: absolute; left: calc(118 * var(--u)); top: calc(562 * var(--u));
  font-weight: 500; font-size: max(calc(29.4 * var(--u)), 15px); line-height: max(calc(36 * var(--u)), 20px); letter-spacing: -0.01em;
  color: var(--white);
}
.sl { display: block; white-space: nowrap; }

.btn-book {
  position: absolute; left: calc(119 * var(--u)); top: calc(737 * var(--u));
  width: calc(192 * var(--u)); height: calc(50 * var(--u));
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan); color: var(--white); border-radius: calc(10 * var(--u));
  font-weight: 800; font-size: max(calc(20 * var(--u)), 13px); text-decoration: none;
}
.btn-book:hover { background: #12A0C5; }

/* ---------- Sections (shared) ---------- */
.sec-head { position: relative; }
.sec-title {
  font-weight: 900; font-size: calc(137 * var(--u)); line-height: calc(110 * var(--u));
  letter-spacing: -0.044em; color: var(--white);
}
.sec-title .label { position: absolute; top: calc(-28 * var(--u)); }
.tl { display: block; white-space: nowrap; }
.sec-sub {
  font-weight: 500; font-size: calc(32.7 * var(--u)); line-height: calc(40 * var(--u)); letter-spacing: -0.01em;
  text-align: center; color: var(--white);
}
.sec-sub-sm { font-size: calc(30 * var(--u)); line-height: 1.3; }

/* ---------- Brand Impact ---------- */
.sec-bi { padding-top: calc(139 * var(--u)); }
.sec-bi .sec-title { text-align: center; white-space: nowrap; }
.sec-bi .label { left: calc(133 * var(--u)); }
.sec-bi .sec-sub { margin-top: calc(81.5 * var(--u)); line-height: calc(49 * var(--u)); }
.brand-grid {
  display: grid;
  grid-template-columns: calc(345 * var(--u)) calc(89 * var(--u)) calc(345 * var(--u)) calc(78 * var(--u)) calc(345 * var(--u));
  row-gap: calc(76 * var(--u));
  margin: calc(117.5 * var(--u)) 0 0 calc(155 * var(--u));
}
.brand-grid li:nth-child(3n+1) { grid-column: 1; }
.brand-grid li:nth-child(3n+2) { grid-column: 3; }
.brand-grid li:nth-child(3n) { grid-column: 5; }
.brand-grid li { height: calc(249 * var(--u)); border-radius: calc(34 * var(--u)); overflow: hidden; background: #111; }
.brand-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Business Advantage ---------- */
.sec-ba { padding-top: calc(202 * var(--u)); }
.sec-ba .sec-title { padding-left: calc(242 * var(--u)); }
.sec-ba .label { left: calc(154 * var(--u)); }
.sec-ba .sec-sub { margin: calc(79 * var(--u)) 0 0 calc(336 * var(--u)); text-align: left; font-size: calc(29.3 * var(--u)); }
.ba-hero {
  display: block; width: calc(1235 * var(--u)); height: calc(723 * var(--u));
  margin: calc(102 * var(--u)) 0 0 calc(145 * var(--u));
  border-radius: calc(44 * var(--u)); overflow: hidden;
}
.ba-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- AI Integration ---------- */
.sec-ai { padding-top: calc(131.8 * var(--u)); }
.sec-ai .sec-title { padding-left: calc(246 * var(--u)); }
.sec-ai .label { left: calc(166 * var(--u)); }
.sec-ai .sec-sub { margin-top: calc(95.5 * var(--u)); font-size: calc(30 * var(--u)); }
.ai-hero {
  display: block; width: calc(1235 * var(--u)); height: calc(723 * var(--u));
  margin: calc(94.5 * var(--u)) 0 0 calc(145 * var(--u));
  border-radius: calc(44 * var(--u)); overflow: hidden;
}
.ai-hero img { width: 100%; height: 100%; object-fit: cover; }

.ai-cards {
  display: grid; grid-template-columns: repeat(3, calc(372 * var(--u)));
  column-gap: calc(60 * var(--u)); row-gap: calc(58 * var(--u));
  margin: calc(74 * var(--u)) 0 0 calc(144 * var(--u));
}
.card {
  position: relative; height: calc(443 * var(--u));
  border-radius: calc(62 * var(--u)); overflow: hidden; isolation: isolate;
  background: #111; container-type: inline-size;
}
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .66); }
.card-text-msg::before { background: rgba(0, 0, 0, .73); }
.card-phone::before { background: rgba(0, 0, 0, .57); }
.card-review::before { background: rgba(0, 0, 0, .5); }
.card-email::before { background: rgba(0, 0, 0, .52); }
.card-booking::before { background: rgba(0, 0, 0, .64); }
.card-text-msg > img { object-position: 22% 50%; }
.card-phone > img { object-position: 35% 50%; }
/* Inside the card, sizes are proportional to the card width (cqw). */
.card-body { position: absolute; inset: 0; }
.card-title {
  display: flex; flex-direction: column; justify-content: center;
  width: fit-content; min-height: 14.52cqw; margin: 15.05cqw auto 0;
  font-weight: 800; font-size: max(5.97cqw, 13px); line-height: max(7.26cqw, 16px); letter-spacing: 0;
}
.card-text {
  width: fit-content; margin: 21.2cqw auto 0;
  font-weight: 700; font-size: max(4.81cqw, 12px); line-height: max(5.91cqw, 15px);
}

/* ---------- Let's Work Together ---------- */
.sec-wt { padding: calc(173.8 * var(--u)) 0 calc(135 * var(--u)); }
#book { scroll-margin-top: calc(-150 * var(--u)); }
.sec-wt .sec-title { text-align: center; }
.sec-wt .label { left: calc(168 * var(--u)); }
.sec-wt .sec-sub { margin-top: calc(51.5 * var(--u)); }
.booking {
  width: calc(1359 * var(--u)); height: max(calc(735 * var(--u)), 700px);
  margin: calc(64.8 * var(--u)) 0 0 calc(82 * var(--u));
  background: var(--white); color: #1a1a1a; overflow: hidden;
}
.calendly-inline-widget { width: 100%; height: 100%; min-width: 320px; }
.booking-fallback { padding: 40px; font-weight: 600; font-size: 18px; }
.booking-fallback a { color: #006BFF; }

/* ---------- Boney Mountain footer ---------- */
.boney { position: relative; height: max(calc(604 * var(--u)), 230px); overflow: hidden; background: var(--black); }
.boney-bg, .boney-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.boney-bg img { object-fit: cover; object-position: 50% 50%; }

/* ==========================================================
   PHONES AND TABLETS IN PORTRAIT (under 900px)
   ========================================================== */
@media (max-width: 899px) {
  :root { --g: 20px; }
  .frame { width: 100%; padding: 0 var(--g); }
  .label { width: 52px; height: 45px; border-radius: 8px; font-size: 20px; }

  /* Hero: face at the top, words on the darker lower part */
  .hero { height: auto; min-height: min(100svh, 900px); display: flex; }
  .hero-bg img { object-position: 70% 0; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .72) 58%, rgba(0, 0, 0, .92) 100%); }
  .hero-frame { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 110px; padding-bottom: 44px; height: auto; flex: 1; }
  .logo { left: var(--g); top: 18px; gap: 14px; }
  .logo-mark { width: 54px; height: 44px; }
  .logo-text { font-size: 17px; }
  .hero-title, .hero-sub, .btn-book { position: static; }
  .hero-title { font-size: min(calc((100vw - 2 * var(--g)) / 14.8), 52px); line-height: 1.03; }
  .hero-sub { margin-top: 18px; font-size: 16.5px; line-height: 1.5; max-width: 34em; }
  .hero-sub .sl { display: inline; white-space: normal; }
  .btn-book { margin-top: 26px; width: 180px; height: 50px; border-radius: 10px; font-size: 17px; }

  /* Section headings */
  .sec-title { font-size: min(calc((100vw - 2 * var(--g)) / 7.1), 96px); line-height: .82; letter-spacing: -0.05em; }
  .sec-title .label { position: static; margin-bottom: 16px; letter-spacing: -0.02em; }
  .sec-bi .sec-title, .sec-wt .sec-title { white-space: normal; }
  .sec-bi .sec-title .label, .sec-wt .sec-title .label { margin-left: auto; margin-right: auto; }
  .sec-ba .sec-title, .sec-ai .sec-title { padding-left: 0; }
  .sec-sub { font-size: 18px; line-height: 1.45; font-weight: 500; margin-top: 22px !important; padding-right: 0 !important; }
  .sec-sub .sl { display: inline; white-space: normal; }
  .sec-ba .sec-sub, .sec-ai .sec-sub { text-align: left; margin-left: 0; }
  .sec-sub-sm { font-size: 18px; }
  .sec-bi .sec-sub, .sec-ba .sec-sub, .sec-ai .sec-sub { font-size: 18px; line-height: 1.45; }

  .sec-bi { padding-top: 72px; }
  .sec-ba, .sec-ai { padding-top: 88px; }
  .sec-wt { padding: 88px 0 64px; }
  #book { scroll-margin-top: -64px; }

  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 36px 0 0; }
  .brand-grid li { grid-column: auto !important; height: auto; aspect-ratio: 345 / 249; border-radius: 18px; }

  .ba-hero { width: 100%; height: auto; aspect-ratio: 1235 / 723; margin: 36px 0 0; border-radius: 22px; }

  .ai-hero { width: 100%; height: auto; aspect-ratio: 1235 / 723; margin: 36px 0 0; border-radius: 22px; }

  .ai-cards { grid-template-columns: 1fr; gap: 16px; margin: 16px 0 0; }
  .card { height: auto; aspect-ratio: 372 / 443; border-radius: 40px; }

  .booking { width: 100%; height: 1080px; margin: 32px 0 0; }

}
@media (min-width: 600px) and (max-width: 899px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-cards { grid-template-columns: repeat(2, 1fr); }
  .booking { height: 1000px; }
}

/* ---------- 404 page ---------- */
.simple-page { min-height: 100svh; display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.simple-title { font-weight: 900; font-size: clamp(2.6rem, 9vw, 6rem); line-height: .9; letter-spacing: -0.05em; }
.simple-lead { margin: 22px auto 30px; font-size: 1.15rem; line-height: 1.5; max-width: 32em; font-weight: 500; }
.simple-page .btn-book { position: static; display: inline-flex; width: auto; height: 50px; padding: 0 26px; border-radius: 10px; font-size: 17px; }

/* ---------- Contact bar (below Boney Mountain) ---------- */
.foot-bar {
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: max(calc(36 * var(--u)), 18px) max(calc(48 * var(--u)), 24px);
  padding: max(calc(56 * var(--u)), 32px) 20px max(calc(64 * var(--u)), 40px);
}
.foot-social { display: flex; align-items: center; gap: max(calc(22 * var(--u)), 16px); }
.foot-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: max(calc(44 * var(--u)), 40px); height: max(calc(44 * var(--u)), 40px);
  color: var(--white); border-radius: 8px; transition: opacity .2s;
}
.foot-icon svg { width: max(calc(30 * var(--u)), 26px); height: max(calc(30 * var(--u)), 26px); }
.foot-icon:hover { opacity: .75; }
.foot-contact {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: 6px max(calc(18 * var(--u)), 12px);
  font-weight: 600; font-size: max(calc(22 * var(--u)), 16px); line-height: 1.4;
}
.foot-contact a { color: var(--white); text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-sep { color: #8A8A8A; }
@media (max-width: 599px) {
  .foot-bar { flex-direction: column; }
  .foot-contact { flex-direction: column; gap: 8px; }
  .foot-sep { display: none; }
}
