/* Ashworth Real Estate Partners — brand layer on top of Tailwind CDN.
   Pure-black canvas, metallic-silver display headings, royal-blue accents. */

:root {
  --black: #000000;
  --blue: #0A5BD0;
  --blue-deep: #0556BC;
  --blue-bright: #2E7BE8;
  --silver-50: #F2F4F6;
  --silver-100: #D7DBE0;
  --silver-200: #AEB2B8;
  --silver-300: #82868C;
  --silver-400: #888C93;
  --body: #9CA0A6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
}

html, body { background: #000; }

/* ---- Typography helpers ------------------------------------------------ */
.font-display { font-family: "Cormorant Garamond", Georgia, serif; }

.label-accent {
  font-family: Inter, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Metallic silver gradient applied to big display headings.
   padding-bottom is REQUIRED, not cosmetic: with background-clip:text the
   gradient only paints inside the element's box, and these serif headings render
   at line-height ~1.0 (Tailwind's text-Nxl utilities bundle line-height:1 and
   override leading-*), so the line box is exactly font-size tall and the
   descenders (g/p/y/j/q) fall BELOW it and paint transparent — looking clipped.
   The 0.2em bottom padding extends the painted box below the baseline so
   descenders are fully covered on every element using this treatment, at any
   size/viewport. Keep it on the shared classes so it can't regress per-heading. */
.metallic {
  background: linear-gradient(177deg, #FFFFFF 0%, #E6E9ED 22%, #C7CBD1 46%, #9CA0A6 66%, #6B7077 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  padding-bottom: 0.2em;
}

/* Subtle blue-tinted metallic, for accents on darker sub-heads. */
.metallic-blue {
  background: linear-gradient(177deg, #EAF1FF 0%, #B9D2FB 40%, #6FA2F0 70%, #2E7BE8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.2em;
}

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: var(--line);
}
.nav-link {
  position: relative;
  color: var(--silver-200);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--silver-50); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px; width: 0;
  background: var(--blue-bright);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---- Buttons ----------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  box-shadow: 0 0 0 1px rgba(46, 123, 232, 0.4), 0 8px 30px -10px rgba(46, 123, 232, 0.55);
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 0 0 1px rgba(46, 123, 232, 0.6), 0 14px 40px -8px rgba(46, 123, 232, 0.7);
}
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; min-height: 44px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--silver-100);
  font-weight: 500;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--blue-bright); }

/* ---- Focus visibility (a11y) ------------------------------------------ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Cards & surfaces -------------------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.hairline { border-color: var(--line); }

/* Section eyebrow rule */
.eyebrow-rule::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--blue-bright);
  vertical-align: middle;
  margin-right: 0.8rem;
}

/* Ambient blue glow blobs behind hero */
.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

/* Pricing highlight card */
.price-card {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(46,123,232,0.16), rgba(46,123,232,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(46, 123, 232, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 80px -40px rgba(46, 123, 232, 0.5);
}

.worked {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Forms */
.field {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #EDEFF2;
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder { color: #82868C; }
.field:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(46,123,232,0.06);
  box-shadow: 0 0 0 3px rgba(46,123,232,0.15);
}
.field-error { border-color: #E0526A; }
.error-text { color: #F2849A; font-size: 0.8rem; margin-top: 0.3rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--silver-50);
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.25s ease; color: var(--blue-bright); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 1.3rem; color: var(--body); line-height: 1.7; max-width: 60ch; }

/* Dashboard table */
.lead-row { transition: background 0.3s ease, box-shadow 0.6s ease; }
.lead-row:hover { background: rgba(255,255,255,0.025); }
.lead-row.highlight {
  background: rgba(46,123,232,0.12);
  box-shadow: inset 3px 0 0 var(--blue-bright), 0 0 30px -6px rgba(46,123,232,0.6);
  animation: pulseRow 1.4s ease-in-out 2;
}
@keyframes pulseRow {
  0%, 100% { background: rgba(46,123,232,0.10); }
  50% { background: rgba(46,123,232,0.26); }
}
.bar { background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep)); border-radius: 4px 4px 0 0; }

/* ---- Scroll reveal ----------------------------------------------------- */
/* Scoped to .js so content is FULLY VISIBLE without JavaScript (progressive
   enhancement). The inline head script adds `js` to <html> before paint. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lead-row.highlight { animation: none !important; }
  html { scroll-behavior: auto !important; }
  .btn-primary, .card { transition: none !important; }
}
