/* BLOX Realty — base + interaction styles (Forest & Clay / Sage White theme) */
html { scroll-behavior: smooth; }
body { margin: 0; background: #f5f8f4; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
img { display: block; }
::placeholder { color: rgba(245,248,244,.45); }

@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* --- Hover / focus (ported from prototype style-hover / style-focus) --- */
.nav-link { transition: color .2s ease; }
.nav-link:hover { color: #c2683f; }
.btn-forest:hover { background: #243b30 !important; transform: translateY(-1px); }
.btn-clay:hover { background: #a8552f !important; transform: translateY(-2px); }
.btn-clay-block:hover { background: #a8552f !important; }
.btn-outline:hover { border-color: rgba(245,248,244,.6) !important; background: rgba(245,248,244,.06) !important; }
.focus-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px -18px rgba(47,74,60,.28); }
.field:focus { border-color: rgba(245,248,244,.5) !important; }
.bio-link:hover { color: #a8552f !important; }

/* --- Mobile menu (hamburger) — hidden on desktop --- */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid #dfe4db;
  background: rgba(245,248,244,.6);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: #1F5C3D;
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Responsive layer (desktop fidelity preserved; graceful stacking below) --- */
@media (max-width: 1000px) {
  .h1 { font-size: 50px !important; }
}
@media (max-width: 900px) {
  .hero-card { min-height: auto !important; }
  .phil-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .phil-sticky { position: static !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .pipeline-grid { grid-template-columns: 1fr !important; }
  .bio-grid { grid-template-columns: 1fr !important; }
  /* Mobile portraits: show the whole photo (no half-face crop), scaled to width */
  .bio-grid .bio-img { min-height: 0 !important; background: #eef2ec; }
  .bio-grid .bio-img img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1122 / 1402;
    object-fit: contain !important;
    transform: none !important;
    transition: none !important;
  }
  .card-pad { padding: 56px 40px !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .h1 { font-size: 44px !important; line-height: 1.08 !important; }
  .h2-scrub { font-size: 30px !important; line-height: 1.32 !important; }
  .sec-compact { padding-top: 76px !important; padding-bottom: 68px !important; }
  #focus { padding-bottom: 76px !important; }
  /* philosophy frosted rows */
  .phil-grid > div:last-child > div { padding: 26px 26px !important; gap: 22px !important; }
}
@media (max-width: 720px) {
  .gutter { padding-left: 22px !important; padding-right: 22px !important; }
  #top { padding-top: 22px !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 34px 18px !important; }
  /* --- Mobile nav: collapse into hamburger dropdown --- */
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 4px);
    right: 22px;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    min-width: 214px;
    background: #ffffff;
    border: 1px solid #e2e7df;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 22px 48px -20px rgba(31,92,61,.34);
    display: none !important;
  }
  header.menu-open .nav-links { display: flex !important; }
  .nav-links a {
    padding: 12px 14px !important;
    border-radius: 10px;
    font-size: 15px !important;
  }
  .nav-links a:not(.btn-forest):hover { background: rgba(31,92,61,.06); }
  .nav-links .btn-forest {
    text-align: center;
    margin-top: 6px;
    padding: 13px 14px !important;
  }
  .card-pad { padding: 44px 26px !important; }
  .sec-compact { padding-top: 60px !important; padding-bottom: 52px !important; }
  #focus { padding-bottom: 60px !important; }
  #pipeline { padding-bottom: 64px !important; }
  .phil-grid > div:last-child > div { padding: 24px 22px !important; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr !important; }
  .h1 { font-size: 34px !important; line-height: 1.1 !important; }
  .h2-scrub { font-size: 25px !important; }
  .card-pad { padding: 40px 22px !important; }
  .credentials-grid { grid-template-columns: 1fr !important; }
  .stats-num { font-size: 40px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
