/* ==========================================================================
   Atlas — responsive overrides + shared interactive styles.
   The design is built with inline styles; media queries and hover states
   can't be inline, so they live here.
   ========================================================================== */

/* ---- Stack every multi-column grid on tablet & down ---- */
@media (max-width: 900px) {
  div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* sticky side columns shouldn't stick once stacked */
  div[style*="position: sticky"], div[style*="position:sticky"] { position: static !important; top: auto !important; }
}

/* ---- Typography: rein in the large display sizes on phones ---- */
@media (max-width: 680px) {
  h1[style] { font-size: 34px !important; line-height: 1.12 !important; }
  h2[style] { font-size: 27px !important; line-height: 1.18 !important; }
  /* the big italic quote on About */
  p[style*="font-size: 32px"], p[style*="font-size:32px"] { font-size: 23px !important; line-height: 1.4 !important; }
}

/* ---- Home hero floating badge: keep it inside the frame ---- */
@media (max-width: 680px) {
  div[style*="left: -24px"], div[style*="left:-24px"] { left: 10px !important; bottom: 18px !important; }
}

/* ==========================================================================
   NAV — desktop links vs. mobile hamburger
   ========================================================================== */
.atlas-burger { display: none; }
.atlas-mnav { display: none; }

@media (max-width: 860px) {
  .atlas-dnav { display: none !important; }
  .atlas-burger { display: inline-flex !important; }
  .atlas-mnav.open { display: block !important; }
}

.nav-link { text-decoration: none; font-weight: 500; font-size: 14.5px; color: #4A554F; padding: 9px 12px; border-radius: 8px; transition: color .15s ease, background .15s ease; }
.nav-link:hover { color: #2C6E63; }
.nav-active { font-weight: 600; color: #2C6E63; background: rgba(44,110,99,0.09); }

.mnav-link { text-decoration: none; font-weight: 500; font-size: 17px; color: #2A3A38; padding: 14px; border-radius: 12px; display: block; }
.mnav-active { font-weight: 700; color: #2C6E63; background: rgba(44,110,99,0.09); }

/* ==========================================================================
   Hover states (converted from the design's style-hover attributes)
   ========================================================================== */
.hv-lift { transition: transform .15s ease; }
.hv-lift:hover { transform: translateY(-2px); }
.hv-lift1 { transition: transform .15s ease; }
.hv-lift1:hover { transform: translateY(-1px); }
.hv-card { transition: transform .15s ease, box-shadow .15s ease; }
.hv-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(22,41,47,0.4); }
.hv-border-teal:hover { border-color: #2C6E63 !important; }
.hv-border-orange:hover { border-color: #E07A3F !important; }
.hv-ink:hover { background: #0F1F24 !important; }
.hv-text-cream:hover { color: #FBF7F0 !important; }
.hv-text-light:hover { color: #C9D2D0 !important; }

/* ---- Base ---- */
* { box-sizing: border-box; }
body { margin: 0; background: #FBF7F0; }
::selection { background: #E07A3F; color: #fff; }

/* ---- Accessibility: visible keyboard focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(44,110,99,0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .hv-lift, .hv-lift1, .hv-card, .hv-lift:hover, .hv-lift1:hover, .hv-card:hover { transition: none; transform: none; }
}
