/* ---------------------------------------------------------------
   Daniel Carrol — dancarrol.ca
   Brand: Navy #394a5a · Green #8abf5c · Montserrat
   Premium dark. Big type, high contrast, generous spacing.
---------------------------------------------------------------- */

:root {
  --bg: #0e1319;              /* near-black navy — page base */
  --bg-2: #121924;           /* elevated dark */
  --navy: #394a5a;           /* brand navy */
  --navy-deep: #26333f;
  --green: #8abf5c;
  --green-bright: #a3d370;
  --green-deep: #6ea343;

  --white: #ffffff;
  --text: #e7ecf1;
  --muted: #93a1af;          /* cool-gray subtext */
  --faint: #6b7986;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.028);

  --radius: 18px;
  --wrap: 1180px;
  --glow-green: 0 18px 60px rgba(138, 191, 92, 0.28);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Shared: pill eyebrow --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  backdrop-filter: blur(6px);
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(138, 191, 92, 0.18);
}

.accent { color: var(--green); }

/* --- Shared: buttons --- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn svg { flex: none; transition: transform 0.2s ease; }
.btn--primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  color: #10151b;
  box-shadow: 0 12px 30px rgba(138, 191, 92, 0.24);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--white);
}
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-3px); box-shadow: var(--glow-green); }
  .btn--primary:hover svg { transform: translateX(4px); }
  .btn--ghost:hover { border-color: rgba(138, 191, 92, 0.55); color: var(--green); }
  .btn--ghost:hover svg { transform: translateX(4px); }
}
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow svg { flex: none; }
@media (hover: hover) {
  .link-arrow:hover { gap: 0.65rem; color: var(--green-bright); }
}

/* ---------------------------------------------------------------
   HERO — split layout
---------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column-reverse;   /* mobile: photo on top, content below */
  background: var(--bg);
  position: relative;
}

.hero__content {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(138, 191, 92, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, #2b3844 55%, #1c2731 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 4rem;
  display: flex;
}

.hero__inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.hero__headline {
  margin: 1.5rem 0 1.25rem;
  font-weight: 800;
  font-size: clamp(2.3rem, 8vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--white);
}

.hero__subhead {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.08rem, 2.6vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 32ch;
}

.hero__name {
  margin: 2rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}
.hero__name-role {
  font-weight: 500;
  color: var(--green);
}

.hero__photo {
  position: relative;
  background: var(--navy-deep);
}
.hero__photo img {
  width: 100%;
  height: 64vh;
  max-height: 580px;
  object-fit: cover;
  object-position: center top;
}

/* ---------------------------------------------------------------
   SECTION HEADER (shared)
---------------------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.25rem;
}
.section-head__title {
  margin: 1.25rem 0 1rem;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--white);
}
.section-head__sub {
  margin: 0 auto;
  max-width: 46ch;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--muted);
}

/* ---------------------------------------------------------------
   FORK — two equal-weight cards
---------------------------------------------------------------- */
.fork {
  padding: 5rem 1.5rem 5.5rem;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(138, 191, 92, 0.07), transparent 70%),
    var(--bg);
}
.fork__wrap { max-width: var(--wrap); margin: 0 auto; }

.fork__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

/* soft glow that fades in on hover */
.card__glow {
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(138, 191, 92, 0.22), transparent 70%);
  transition: opacity 0.22s ease;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 15px;
  margin-bottom: 1.75rem;
  color: #10151b;
}
.card__icon--green {
  background: linear-gradient(150deg, var(--green-bright), var(--green-deep));
  box-shadow: 0 12px 30px rgba(138, 191, 92, 0.32);
}
.card__icon--navy {
  background: linear-gradient(150deg, #5a7183, var(--navy));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(57, 74, 90, 0.5);
}

.card__body { flex: 1 1 auto; }

.card__title {
  margin: 0 0 0.65rem;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  letter-spacing: -0.015em;
  color: var(--white);
}
.card__text {
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 32ch;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  align-self: flex-start;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  color: #10151b;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 10px 26px rgba(138, 191, 92, 0.22);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.card__arrow { flex: none; transition: transform 0.22s ease; }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 191, 92, 0.4);
    background: rgba(255, 255, 255, 0.045);
  }
  .card:hover .card__glow { opacity: 1; }
  .card:hover .card__cta { box-shadow: var(--glow-green); }
  .card:hover .card__arrow { transform: translateX(4px); }
}
.card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.footer {
  background: #0a0e13;
  border-top: 1px solid var(--line);
  padding: 4rem 1.5rem 0;
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__name {
  margin: 0 0 0.65rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--white);
}
.footer__tag {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.98rem;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer__link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
  width: fit-content;
  transition: color 0.15s ease;
}
.footer__link:hover { color: var(--green); }

.footer__bar {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.75rem;
}
.footer__legal {
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------------------------------------------------------------
   DESKTOP
---------------------------------------------------------------- */
@media (min-width: 901px) {
  .hero {
    flex-direction: row;
    align-items: stretch;
    min-height: 86vh;
  }
  .hero__content {
    flex: 1 1 57%;
    align-items: center;
    padding: 5rem 4.5rem;
  }
  .hero__inner { margin: 0 auto 0 0; }
  .hero__photo { flex: 0 0 43%; max-width: 43%; }
  .hero__photo img { height: 100%; max-height: none; }

  /* green seam between content and photo */
  .hero__photo::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(138, 191, 92, 0.6), transparent);
    z-index: 2;
  }

  .fork__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .footer__inner {
    grid-template-columns: 1.2fr 1.6fr;
    gap: 4rem;
    align-items: start;
    padding-bottom: 3.5rem;
  }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1500px) {
  .hero__content { padding-left: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

/* ---------------------------------------------------------------
   Homepage contact form
---------------------------------------------------------------- */
.home-contact { border-top: 1px solid var(--line); }
.home-contact__inner { max-width: 640px; }
.home-form { display: flex; flex-direction: column; gap: 0.9rem; }
.home-form__trap { position: absolute; left: -9999px; opacity: 0; height: 0; margin: 0; }
.home-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.home-form__input {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.home-form__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.home-form__input:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.05);
}
.home-form__select { appearance: none; cursor: pointer; }
.home-form__select:invalid { color: rgba(255, 255, 255, 0.45); }
.home-form__select option { background: var(--bg-2); color: var(--text); }
.home-form__textarea { resize: vertical; min-height: 110px; }
.home-form__submit { justify-content: center; width: 100%; margin-top: 0.25rem; }
@media (max-width: 540px) {
  .home-form__row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   HERO — video background variant
---------------------------------------------------------------- */
.hero--video {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(138, 191, 92, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(14, 19, 25, 0.86) 0%, rgba(14, 19, 25, 0.55) 50%, rgba(14, 19, 25, 0.82) 100%);
}
.hero__content--video {
  position: relative;
  z-index: 2;
  background: none;
  width: 100%;
  padding: 5.5rem 1.5rem 6rem;
}
.hero--video .hero__inner { max-width: 720px; }
.hero--video .hero__headline { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.hero--video .hero__subhead { color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

/* ---------------------------------------------------------------
   Fork cards — brand logo beside icon
---------------------------------------------------------------- */
.card__iconrow {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.card__iconrow .card__icon { margin-bottom: 0; flex: none; }
.card__logo {
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
.card__logo--chip {
  background: #ffffff;
  padding: 7px 12px;
  border-radius: 12px;
  height: 52px;
}

/* Home contact form — match the real-estate lead form exactly */
.home-form__input {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-radius: 12px;
}
.home-form__input:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.09);
}
.home-contact__inner { max-width: 560px; }
.home-contact__inner { margin: 0 auto; padding: 0 1.5rem; }

/* Logos sized to match the 60px icons */
.card__logo { height: 60px; max-width: 230px; }
.card__logo--chip { height: 60px; padding: 8px 14px; }

/* Contact section — form left, Dan's photo right */
.home-contact__inner--split {
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 560px) 280px;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}
.home-contact__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 820px) {
  .home-contact__inner--split { grid-template-columns: 1fr; }
  .home-contact__photo { display: none; }
}
