/* ════════════════════════════════════════════════════════
   Murphy & Jones Inc. — Custom Website
   Design language: Apple-inspired — white space, large
   typography, full-bleed media tiles, restrained motion.
   ════════════════════════════════════════════════════════ */

:root {
  --white:      #ffffff;
  --gray:       #f5f5f7;   /* Apple light gray */
  --ink:        #1d1d1f;   /* primary text */
  --ink-2:      #6e6e73;   /* secondary text */
  --blue:       #0071e3;   /* action blue */
  --blue-hover: #0077ed;
  --link:       #06c;      /* text-link blue */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(0, 113, 227, 0.25); }

img { display: block; }

/* Logo image helpers: source PNG is white — invert for light backgrounds */
.logo-img { height: auto; }
.logo-img--dark { filter: invert(1) opacity(0.92); }

/* ─────────── Navigation ─────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.4s;
}
.nav--overlay {
  background: rgba(22, 22, 23, 0.5);
}
.nav__inner {
  max-width: 1024px; height: 100%;
  margin-inline: auto;
  padding-inline: 22px;
  display: flex; align-items: center; gap: 2rem;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
}
.nav__mark { height: 24px; width: auto; }
.nav--overlay .nav__mark { filter: none; opacity: 0.95; }
.nav__logo-text {
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink);
}
.nav--overlay .nav__logo-text { color: #f5f5f7; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-size: 12.5px; font-weight: 400;
  color: rgba(29, 29, 31, 0.82); text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav--overlay .nav__links a { color: rgba(245, 245, 247, 0.8); }
.nav--overlay .nav__links a:hover { color: #fff; }
.nav__cta {
  font-size: 12.5px; font-weight: 500;
  color: #fff !important; text-decoration: none;
  background: var(--blue);
  padding: 6px 14px; border-radius: 100px;
  white-space: nowrap;
  transition: background 0.25s;
}
.nav__cta:hover { background: var(--blue-hover); }
.nav__burger { display: none; }

/* ─────────── Buttons & links ─────────── */

.btn-pill {
  display: inline-block;
  font-family: var(--font);
  font-size: 17px; font-weight: 400;
  color: #fff; text-decoration: none;
  background: var(--blue);
  padding: 12px 24px; border-radius: 100px;
  border: none; cursor: pointer;
  transition: background 0.25s, transform 0.3s var(--ease-out);
}
.btn-pill:hover { background: var(--blue-hover); transform: scale(1.02); }
.btn-pill--small { font-size: 15px; padding: 10px 20px; }
.btn-pill--wide { width: 100%; }

.link-chevron {
  font-size: 17px; color: var(--link); text-decoration: none;
  transition: opacity 0.25s;
}
.link-chevron::after {
  content: "›"; margin-left: 6px;
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.link-chevron:hover { text-decoration: underline; }
.link-chevron:hover::after { transform: translateX(3px); }
.link-chevron--light {
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.link-chevron--light:hover { text-decoration-color: #fff; }

/* ─────────── Reveal on scroll ─────────── */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.in-view { opacity: 1; transform: none; }

/* Hero reveals fire on load */
.reveal-hero {
  opacity: 0; transform: translateY(26px);
  animation: heroUp 1.1s var(--ease-out) forwards;
  animation-delay: 0.35s;
}
.reveal-hero.d1 { animation-delay: 0.5s; }
.reveal-hero.d2 { animation-delay: 0.65s; }
.reveal-hero.d3 { animation-delay: 0.8s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  height: 84svh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(0, 0, 0, 0.42), transparent 75%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.3) 40%,
      rgba(0, 0, 0, 0.55) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  padding: 0 24px;
  max-width: 900px;
}
.hero__logo {
  height: clamp(84px, 14vh, 130px); width: auto;
  margin: 0 auto 34px;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}
.hero__title {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 18px;
}
.hero__sub {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400; color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 34px;
}
.hero__actions {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.hero__scrollhint {
  position: absolute; bottom: 26px; left: 50%;
  width: 1.5px; height: 52px;
  transform: translateX(-50%);
  overflow: hidden; border-radius: 2px; z-index: 1;
}
.hero__scrollhint::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,0.9), transparent);
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ─────────── Media tiles (Apple-style) ─────────── */

.tile {
  position: relative;
  min-height: 86vh;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
  background: #000;
}
.tile__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* legibility scrim from top */
.tile--media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 30%,
    rgba(0, 0, 0, 0.18) 60%,
    rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}
.tile__text {
  position: relative; z-index: 2;
  text-align: center;
  padding: 84px 24px 0;
  max-width: 760px;
}
.tile__eyebrow {
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 10px;
}
.tile__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.08;
  margin-bottom: 14px;
}
.tile__sub {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  margin-bottom: 26px;
}
.tile__text--ondark { color: #fff; }
.tile__text--ondark .tile__eyebrow { color: rgba(255, 255, 255, 0.85); }
.tile__text--ondark .tile__sub { color: rgba(255, 255, 255, 0.95); }
.tile__text--ondark .tile__title,
.tile__text--ondark .tile__sub {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 2px 22px rgba(0, 0, 0, 0.45);
}
.tile__links {
  display: flex; align-items: center; justify-content: center;
  gap: 26px; flex-wrap: wrap;
}
.tile__services {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 0 24px 30px;
  font-size: 13.5px; letter-spacing: 0.02em;
}
.tile__services--ondark {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ─────────── Duo tiles ─────────── */

.duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 12px;
  background: var(--white);
}
.duo__tile {
  position: relative;
  min-height: 62vh;
  border-radius: 18px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  text-decoration: none;
}
.duo__tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.duo__tile:hover img { transform: scale(1.045); }
.duo__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.12) 30%,
    rgba(0, 0, 0, 0.82) 100%);
}
.duo__text {
  position: relative; z-index: 1;
  padding: 34px 34px 30px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.duo__text h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.duo__text p {
  font-size: 16px; color: rgba(255, 255, 255, 0.85);
  max-width: 44ch;
  margin-bottom: 12px;
}
.duo__text .link-chevron { font-size: 16px; }

/* ─────────── Why Miami ─────────── */

.why {
  background: var(--gray);
  padding: 120px 24px;
  text-align: center;
}
.why__eyebrow {
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 12px;
}
.why__title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.1;
  margin-bottom: 18px;
}
.why__lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 640px; margin: 0 auto 64px;
}
.why__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1024px; margin-inline: auto;
  text-align: left;
}
.why__item {
  background: var(--white);
  border-radius: 18px;
  padding: 30px 28px 32px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.why__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}
.why__item h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.why__item p {
  font-size: 15px; line-height: 1.65;
  color: var(--ink-2);
}

/* ─────────── Statement + stats ─────────── */

.statement {
  background: var(--white);
  padding: 130px 24px;
  text-align: center;
}
.statement__text {
  max-width: 820px; margin: 0 auto;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.25;
  color: var(--ink);
}
.statement__stats {
  display: flex; justify-content: center;
  gap: clamp(3rem, 9vw, 8rem);
  margin-top: 70px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__number, .stat__plus {
  display: inline;
  font-size: clamp(44px, 5.4vw, 64px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
}
.stat { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.stat__plus { color: var(--blue); }
.stat__label {
  width: 100%; text-align: center;
  font-size: 14px; color: var(--ink-2);
  margin-top: 10px;
}

/* ─────────── References ─────────── */

.references {
  background: var(--gray);
  padding: 120px 24px;
  text-align: center;
}
.references__eyebrow {
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 12px;
}
.references__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.12;
  margin-bottom: 56px;
}
.references__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 300px));
  justify-content: center;
  gap: 18px;
}
.references__grid li {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.references__grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}
.references__grid figure { margin: 0; }
.references__grid img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: transform 0.6s var(--ease-out);
}
.references__grid li:hover img { transform: scale(1.03); }
.references__grid figcaption {
  padding: 16px 12px 18px;
  font-size: 15.5px;
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}

/* ─────────── Contact ─────────── */

.contact {
  background: var(--white);
  padding: 130px 24px 120px;
  text-align: center;
}
.contact__eyebrow {
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 12px;
}
.contact__title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.contact__lead {
  font-size: 17px; color: var(--ink-2);
  margin-bottom: 54px;
}
.contact__cols {
  display: flex; justify-content: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.contact__col { text-align: center; }
.contact__label {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 6px;
}
.contact__col a {
  color: var(--ink); text-decoration: none; font-size: 15.5px;
  transition: color 0.25s;
}
.contact__col a:hover { color: var(--link); }

.contact__form {
  max-width: 580px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  font-family: var(--font); font-size: 16px;
  color: var(--ink);
  background: var(--gray);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 16px;
  outline: none; resize: vertical;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
}
.contact__form select { color: var(--ink); cursor: pointer; }
.contact__form select:invalid { color: var(--ink-2); }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--ink-2); }
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(0, 113, 227, 0.18);
}
.contact__form .btn-pill { margin-top: 8px; }
.contact__note {
  font-size: 13px; color: var(--ink-2); text-align: center;
}
.contact__success {
  text-align: center;
  font-size: 17px; line-height: 1.6;
  color: var(--ink);
  padding: 40px 20px;
}

/* ─────────── Footer ─────────── */

.footer {
  background: var(--gray);
  border-top: 1px solid #d2d2d7;
  padding: 40px 24px 44px;
}
.footer__inner {
  max-width: 1024px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 22px; text-align: center;
}
.footer__logo { height: 54px; width: auto; opacity: 0.85; }
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-size: 12.5px; color: #424245; text-decoration: none;
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.footer__copy { font-size: 12px; color: #86868b; }

/* ─────────── Responsive ─────────── */

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo__tile { min-height: 52vh; }
  .why__grid { grid-template-columns: 1fr; }
  .why { padding: 90px 24px; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    position: fixed; inset: 52px 0 0 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; justify-content: flex-start;
    padding-top: 44px; gap: 2rem;
  }
  .nav__links.open a { font-size: 19px; color: var(--ink); }
  .nav--overlay .nav__links.open a { color: var(--ink); }
  .nav__cta { margin-left: auto; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5.5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav__burger span {
    width: 20px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out);
  }
  .nav--overlay .nav__burger span { background: #f5f5f7; }
  .nav__burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav__burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .tile { min-height: 78vh; }
  .tile__text { padding-top: 64px; }
  .form__row { grid-template-columns: 1fr; }
  .references__grid { grid-template-columns: repeat(2, 1fr); }
  .statement { padding: 90px 24px; }
  .references { padding: 90px 24px; }
  .contact { padding: 90px 24px 80px; }
}

/* ─────────── Reduced motion ─────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
  .hero__video { display: none; }
  .hero { background: url("../img/hero-poster.jpg") center/cover; }
}
