/* Anthony Brown Estate Agents: shared styles (Tailwind Play CDN handles utilities) */
:root {
  --ab-yellow: #F2EA3B;
  --ab-yellow-hover: #E7DE21;
  --ab-gold: #FDCB00;
  --ab-charcoal: #333333;
  --ab-ink: #232323;
  --ab-grey: #666666;
  --ab-paper: #F7F7F7;
  --ab-teal: #5BBDC8;
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--ab-charcoal); background: #fff; }
.font-display { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; }
.font-label { font-family: 'Oswald', 'Arial Narrow', sans-serif; }

/* Fluid type scale */
.t-hero { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 6.4rem); line-height: .95; letter-spacing: -0.035em; }
.t-h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.t-h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.025em; }
.t-h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; letter-spacing: -0.015em; }
.t-lead { font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); line-height: 1.7; }
.prose-ab p { line-height: 1.8; }
.eyebrow { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 500; }

/* Header */
.site-header { transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.menu-open { background-color: #232323; }
.site-header.is-scrolled { background-color: rgba(35, 35, 35, .86); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--ab-yellow); transition: right .3s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ab-yellow); color: var(--ab-ink); box-shadow: 0 12px 30px -14px rgba(242,234,59,.9); }
.btn-primary:hover { background: var(--ab-yellow-hover); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ab-ink); }
.btn-dark { background: var(--ab-ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Cards */
.card-lift { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(0,0,0,.45); }
.zoom { overflow: hidden; }
.zoom img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img, .card-lift:hover .zoom img { transform: scale(1.06); }

/* Hero layers */
.hero-shade { background: linear-gradient(100deg, rgba(28,28,28,.92) 0%, rgba(35,35,35,.72) 40%, rgba(35,35,35,.15) 75%, rgba(35,35,35,.35) 100%); }
.hero-slash { clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); }
.grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px); background-size: 3px 3px; }
.yellow-underline { background-image: linear-gradient(var(--ab-yellow), var(--ab-yellow)); background-size: 100% .18em; background-position: 0 92%; background-repeat: no-repeat; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; } .reveal-delay-2 { transition-delay: .16s; } .reveal-delay-3 { transition-delay: .24s; }

/* Horizontal scroller */
.snap-row { scroll-snap-type: x mandatory; scrollbar-width: none; }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { scroll-snap-align: start; }

/* Accordion */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .acc-icon { transform: rotate(45deg); }
.acc-icon { transition: transform .3s ease; }

/* Forms */
.field { width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid #dcdcdc; background: #fff; padding: .8rem 1rem; font-size: 1rem; color: var(--ab-ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field:focus { outline: none; border-color: var(--ab-ink); box-shadow: 0 0 0 4px rgba(242,234,59,.55); }
textarea.field { min-height: 130px; resize: vertical; }
.field-label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; color: var(--ab-ink); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; }
.form-msg.is-shown { display: flex; }
button[disabled] { opacity: .6; cursor: progress; transform: none !important; }
.grecaptcha-badge { visibility: hidden; }

/* Filter chips */
.chip { flex-shrink: 0; white-space: nowrap; min-height: 42px; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid #d6d6d6; font-weight: 600; font-size: .9rem; transition: all .2s ease; background: #fff; }
.chip:hover { border-color: var(--ab-ink); }
.chip[aria-pressed="true"] { background: var(--ab-ink); border-color: var(--ab-ink); color: var(--ab-yellow); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(15,15,15,.96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lb-btn { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: background .2s ease; }
.lb-btn:hover { background: var(--ab-yellow); color: var(--ab-ink); }

/* Testimonial carousel */
.tslide { display: none; }
.tslide.is-active { display: block; animation: tfade .6s ease; }
@keyframes tfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Room list */
.room + .room { border-top: 1px solid #e6e6e6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
