/* Beckenham Property Support – custom styles */

:root {
  --navy: #1a1a2e;
  --charcoal: #2d2d44;
  --gold: #d4af37;
  --gold-dark: #b8962e;
  --orange: #ff8c00;
  --orange-dark: #e67e00;
  --light-gray: #f5f5f5;
  --text: #333333;
  --muted: #666666;
  --border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* ─────────────────────────────────────────────────────────────────
   * Cross-browser colour consistency
   *
   * The site is intentionally a light theme. Samsung Internet (and to
   * a lesser extent Chrome on Android with "force dark mode") will
   * auto-invert light pages unless we explicitly opt out. The chain
   * below is the strongest opt-out the platform allows.
   *
   * `color-scheme: light only` is stronger than plain `light` — the
   * `only` keyword tells the engine "do not adapt this page at all".
   * Note: if the user manually toggles Samsung's "force dark on every
   * site" in browser settings, they're overriding the page intent
   * and there's nothing CSS can do about that.
   * ───────────────────────────────────────────────────────────────── */
  color-scheme: light only;
}
/* Intentionally-empty dark-scheme block: signals to engines that we
 * have considered dark mode and explicitly chose to render the same
 * styles. Samsung Internet uses this presence as a "do not auto-
 * convert" hint. */
@media (prefers-color-scheme: dark) {
  html { color-scheme: light only; }
}
/* Lock baseline page colours so they cannot be inverted via colour
 * filters that some browsers apply. Specific surface colours still
 * come from the Tailwind classes / palette below. */
html, body {
  background-color: #ffffff;
  color: #333333;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Headings inherit a contextual colour. By default (light surfaces) they
 * render in navy; sections that set --heading-color (dark surfaces) get
 * white headings without needing per-element overrides.
 *
 * IMPORTANT: only the actual <h1>-<h6> tags get the color rule. The
 * `.font-display` utility intentionally does NOT set color so that
 * Tailwind text-* classes on the parent (e.g. text-white on an <h1>)
 * cascade down through child spans without being overridden. */
:root {
  --heading-color: var(--navy);
}
.bg-navy, .bg-charcoal, .hero-bg,
.bg-navy *, .bg-charcoal *, .hero-bg * {
  --heading-color: #ffffff;
}
.card, .bg-white, .bg-light-gray, .bg-cream {
  --heading-color: var(--navy);
}
.font-display {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--heading-color);
}

/* Gold accent bar used on cards/headings per design guide */
.gold-bar::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  min-height: 44px;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--navy);
}

.btn-secondary {
  background: var(--orange);
  color: #ffffff;
}
.btn-secondary:hover {
  background: var(--orange-dark);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: #ffffff;
}

/* Hero gradient with subtle pattern */
.hero-bg {
  background:
    radial-gradient(circle at 20% 30%, rgba(212,175,55,0.12), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,140,0,0.08), transparent 50%),
    linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

/* Card shadow per design guide */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Service card with gold accent */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

/* Inputs */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  width: 100%;
  min-height: 44px;
  color: var(--text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* FAQ accordion */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 200ms ease;
  color: var(--gold);
}
.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 1rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}

/* Trust signal icons */
.trust-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ----- Modern mobile nav (2026 pattern) ---------------------------- */
/* Hamburger button — 3 lines that morph into an X */
#menu-toggle {
  background: transparent;
  border: 0;
  padding: 0;
}
#menu-toggle .hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 300ms cubic-bezier(.4,0,.2,1),
              opacity 200ms ease,
              top 300ms cubic-bezier(.4,0,.2,1);
  position: absolute;
  left: 50%;
  margin-left: -11px;
}
#menu-toggle .hamburger-line:nth-child(1) { top: 14px; }
#menu-toggle .hamburger-line:nth-child(2) { top: 21px; }
#menu-toggle .hamburger-line:nth-child(3) { top: 28px; }
#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Full-screen luxe drawer — fade + slight slide */
#mobile-menu {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 320ms cubic-bezier(.16,1,.3,1),
              visibility 0s linear 320ms;
}
#mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 320ms cubic-bezier(.16,1,.3,1),
              visibility 0s linear 0s;
}
/* Subtle content slide-in on open */
#mobile-menu > div > div {
  transform: translateY(-16px);
  transition: transform 360ms cubic-bezier(.16,1,.3,1);
}
#mobile-menu.open > div > div {
  transform: translateY(0);
}
/* Rotate the Services dropdown chevron when expanded */
#mobile-menu details[open] > summary [data-chev],
#mobile-menu details[data-services-details][open] > summary svg:last-child {
  transform: rotate(180deg);
}

/* Mobile nav links — large, thumb-friendly tap targets */
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  border-radius: 8px;
  min-height: 56px;
  transition: background-color 150ms ease, color 150ms ease;
}
.mobile-link:hover,
.mobile-link:focus-visible {
  background: var(--light-gray);
  color: var(--gold-dark);
}
.mobile-link.is-active {
  color: var(--gold-dark);
  background: rgba(212, 175, 55, 0.08);
}
.mobile-link-summary {
  list-style: none;
  cursor: pointer;
}
.mobile-link-summary::-webkit-details-marker { display: none; }
.mobile-link-summary svg {
  transition: transform 200ms ease;
}
.mobile-link-details[open] .mobile-link-summary svg {
  transform: rotate(180deg);
}
.mobile-sublink {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-radius: 6px;
  min-height: 44px;
}
.mobile-sublink:hover,
.mobile-sublink:focus-visible {
  background: var(--light-gray);
  color: var(--navy);
}
.mobile-sublink.is-active {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ----- Sticky bottom CTA bar (mobile only) -------------------------- */
.mobile-cta-bar {
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-cta-bar a {
  min-height: 56px;
  font-size: 0.95rem;
}
/* Reserve space at the bottom of every mobile page so the bar doesn't
 * sit on top of the footer. */
@media (max-width: 1023px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
 * Luxe / editorial layer — used on the homepage (and reusable).
 * ============================================================ */

/* Serif display — Fraunces variable */
.font-serif,
.serif-display {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.015em;
  font-weight: 500;
}

.italic-serif {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-feature-settings: "ss01";
}

/* Eyebrow label with gold dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow.is-center {
  justify-content: center;
}
.eyebrow.is-no-rule::before { display: none; }

/* Gold horizontal rule */
.gold-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.gold-rule.is-thick { height: 3px; border-radius: 2px; }
.gold-rule.is-center { margin-left: auto; margin-right: auto; }

/* Big editorial numeral used as a section/feature marker */
.section-numeral {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-feature-settings: "lnum", "ss01";
  color: var(--gold);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

/* Credentials marquee — continuous horizontal scroll */
.credentials-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.credentials-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  padding-left: 4rem;
}
.credentials-marquee:hover .credentials-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.credential-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.credential-mark .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Editorial pull-quote */
.pull-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Lux service row — numbered, with hover-shift image */
.lux-service {
  position: relative;
  padding: 2rem 0;
  border-top: 1px solid rgba(26,26,46,0.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .lux-service {
    grid-template-columns: 80px 1fr 1fr;
    gap: 3rem;
    padding: 2.75rem 0;
  }
}
.lux-service:last-child {
  border-bottom: 1px solid rgba(26,26,46,0.08);
}
.lux-service__num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 2.25rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.lux-service__body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.lux-service__body p {
  color: var(--muted);
  max-width: 38ch;
}
.lux-service__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.lux-service__cta::after {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  transition: width 250ms ease;
}
.lux-service:hover .lux-service__cta::after {
  width: 40px;
}
.lux-service__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}
.lux-service__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.16,1,.3,1), filter 400ms ease;
  filter: saturate(0.92);
}
.lux-service:hover .lux-service__media img {
  transform: scale(1.04);
  filter: saturate(1);
}

/* Framed image with gold corner accents */
.frame-image {
  position: relative;
  padding: 14px;
}
.frame-image::before,
.frame-image::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
}
.frame-image::before {
  top: 0; left: 0;
  border-right: 0;
  border-bottom: 0;
}
.frame-image::after {
  bottom: 0; right: 0;
  border-left: 0;
  border-top: 0;
}
.frame-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll reveal — opt-in via data-reveal. Hidden ONLY when JS has
 * confirmed it can drive the animation (html.js, set by an inline
 * <script> in <body>). Without JS the content is visible by default. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.16,1,.3,1),
              transform 700ms cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Stop the auto-scrolling marquee and reveal hidden content
   * for users who've opted out of motion. */
  .credentials-marquee-track { animation: none; transform: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Utility */
.section { padding: 4rem 1rem; }
@media (min-width: 768px) { .section { padding: 5.5rem 1.5rem; } }

.container-narrow { max-width: 1200px; margin: 0 auto; }
.container-text { max-width: 720px; margin: 0 auto; }

/* Star rating */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}
.stars svg { width: 18px; height: 18px; }

/* Article / blog post typography */
.article {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.article p {
  margin: 0 0 1.25em;
}
.article h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.625rem;
  color: var(--navy);
  margin: 2.25em 0 0.75em;
  letter-spacing: -0.02em;
  scroll-margin-top: 7rem;
}
.article h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.75em 0 0.5em;
}
.article ul, .article ol {
  margin: 0 0 1.25em 1.25em;
  padding-left: 0.5rem;
}
.article ul li { list-style: none; position: relative; padding-left: 1.25rem; margin-bottom: 0.5rem; }
.article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.article ol { counter-reset: ol; }
.article ol li { list-style: none; position: relative; padding-left: 2rem; margin-bottom: 0.5rem; counter-increment: ol; }
.article ol li::before {
  content: counter(ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.article a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article a:hover { color: var(--gold-dark); }
.article strong { color: var(--navy); }
.article blockquote {
  border-left: 4px solid var(--gold);
  background: var(--light-gray);
  padding: 1.25rem 1.5rem;
  margin: 1.75em 0;
  font-style: italic;
  color: var(--ink);
  border-radius: 0 8px 8px 0;
}
.article .callout {
  background: var(--light-gray);
  border-left: 4px solid var(--orange);
  padding: 1.25rem 1.5rem;
  margin: 1.75em 0;
  border-radius: 0 8px 8px 0;
}
.article .callout-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Logo treatment
 *
 * The brand logo has a transparent background + dark green artwork.
 * On light surfaces (header) it renders as-is. On dark surfaces
 * (footer, mobile drawer) we flip the green to white via filters,
 * so it stays legible without needing a second white-version PNG. */
.logo-dark {
  filter: none;
  opacity: 1;
}
.logo-light {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
