/* ==========================================================================
   Orofino Gold Exchange — brand layer
   Loads AFTER the template stylesheets. Overrides the template design tokens
   and adds a small set of custom classes. Typography stays the template's
   DM Sans — only colours, logo and layout accents change.
   ========================================================================== */

:root {
  --color-primary: #051e38;   /* Orofino navy */
  --color-secondary: #c39c4c; /* Orofino gold */
  --color-body: #fffdfb;      /* warm white */
  --color-border: #e8e1d5;    /* warm border */
  --color-light: #f1ebe1;     /* soft warm surface */
  --color-dark: #0a1520;      /* near-black navy */
  --color-text: #4c5a64;      /* body copy */
  --color-text-dark: #0a1520;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The template hides [data-aos] elements until its JS adds .aos-animate.
   This build does not ship that script, so force every element visible. */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

::selection {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.75rem 0.75rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Brand utility classes (safe additions on top of the compiled template CSS)
   -------------------------------------------------------------------------- */
.text-gold { color: var(--color-secondary); }
.bg-gold { background-color: var(--color-secondary); }
.bg-navy { background-color: var(--color-primary); }
.border-gold { border-color: var(--color-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Deeper gold for readable contrast on light backgrounds */
  color: #8a671d;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--color-secondary);
  display: inline-block;
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--color-secondary);
  display: inline-block;
}
.eyebrow-light { color: var(--color-secondary); }

/* On mobile the decorative dash makes the wrapped eyebrow look misaligned —
   centre the text on its own instead. */
@media (max-width: 767px) {
  .eyebrow::before,
  .eyebrow-center::after {
    display: none;
  }
  .eyebrow {
    justify-content: center;
    text-align: center;
    line-height: 1.5;
  }
}

/* Hero / CTA button groups — crisp stacking and alignment on mobile */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 20rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Cover media — hero, page headers and CTA panel.
   The photo is a real <img> (fast LCP discovery) with a navy wash above it.
   -------------------------------------------------------------------------- */
.hero-orofino {
  position: relative;
  overflow: hidden;
}
.media-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.wash-navy {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(
    96deg,
    rgba(5, 30, 56, 0.95) 0%,
    rgba(5, 30, 56, 0.82) 42%,
    rgba(5, 30, 56, 0.55) 100%
  );
}
@media (max-width: 767px) {
  .wash-navy {
    background-image: linear-gradient(
      180deg,
      rgba(5, 30, 56, 0.9) 0%,
      rgba(5, 30, 56, 0.82) 60%,
      rgba(5, 30, 56, 0.92) 100%
    );
  }
}
.wash-navy-strong {
  background-image: linear-gradient(
    180deg,
    rgba(5, 30, 56, 0.93) 0%,
    rgba(5, 30, 56, 0.87) 100%
  );
}

/* Trust points strip under the hero */
.hero-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.5rem;
}
@media (min-width: 1024px) {
  .hero-trust { padding-block: 1.75rem; }
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}
.hero-trust svg {
  color: var(--color-secondary);
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
}

/* --------------------------------------------------------------------------
   Story collage (about preview on the home page)
   -------------------------------------------------------------------------- */
.story-collage {
  position: relative;
}
.story-img-main {
  width: 100%;
  display: block;
}
.story-badge {
  position: absolute;
  top: 1.25rem;
  left: 0;
  z-index: 2;
  background: var(--color-primary);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px -20px rgba(5, 30, 56, 0.5);
}
.story-badge strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--color-secondary);
  font-weight: 500;
}
.story-badge span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   How it works — process cards
   -------------------------------------------------------------------------- */
.process-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 1.25rem 1.25rem 1.75rem;
  height: 100%;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}
.process-card:hover {
  border-color: color-mix(in oklab, var(--color-secondary) 60%, transparent);
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
}
.process-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .process-img { height: 210px; }
}
.process-card .step-number { margin-bottom: 0.65rem; }

/* --------------------------------------------------------------------------
   Reviews / quotes
   -------------------------------------------------------------------------- */
.quote-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.quote-card .quote-mark {
  color: var(--color-secondary);
  font-size: 3rem;
  line-height: 0.6;
  font-weight: 500;
  font-family: Georgia, serif;
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stat-value {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .stat-value { font-size: 3rem; }
}

/* --------------------------------------------------------------------------
   Dark contact chips (CTA band)
   -------------------------------------------------------------------------- */
.contact-chip-dark {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contact-chip-dark:hover {
  border-color: color-mix(in oklab, var(--color-secondary) 65%, transparent);
  background: rgba(255, 255, 255, 0.09);
}
.contact-chip-dark svg {
  color: var(--color-secondary);
  flex-shrink: 0;
}
.contact-chip-dark small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

/* Council membership band */
.council-band {
  border: 1px solid var(--color-border);
  background: var(--color-body);
  border-radius: 1.5rem;
  padding: 2rem 2.25rem;
}

/* Final CTA panel */
.cta-panel {
  border-radius: 2rem;
  padding: 4rem 2rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cta-panel { padding: 5rem 3rem; }
}
@media (max-width: 767px) {
  .cta-panel { padding: 3rem 1.25rem; }
}

/* --------------------------------------------------------------------------
   Inner page header banner
   -------------------------------------------------------------------------- */
.page-header-orofino {
  background-image:
    linear-gradient(180deg, rgba(5, 30, 56, 0.92) 0%, rgba(5, 30, 56, 0.86) 100%),
    url("/images/orofino/hero-gold-rings.webp");
  background-size: cover;
  background-position: center 40%;
}
.page-header-orofino-sm {
  background-image:
    linear-gradient(180deg, rgba(5, 30, 56, 0.93) 0%, rgba(5, 30, 56, 0.88) 100%),
    url("/images/orofino/hero-gold-rings-mobile.webp");
  background-size: cover;
  background-position: center 40%;
}

/* --------------------------------------------------------------------------
   Cards & frames
   -------------------------------------------------------------------------- */
.card-gold-frame {
  border: 1px solid var(--color-border);
  background: var(--color-body);
  border-radius: 1.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-gold-frame:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--color-secondary) 55%, transparent);
  box-shadow: 0 22px 45px -20px rgba(5, 30, 56, 0.25);
}

/* Round icon holder */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--color-secondary) 14%, transparent);
  flex-shrink: 0;
}
.icon-badge img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   FAQ accordions — native <details>, zero JavaScript
   -------------------------------------------------------------------------- */
details.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
}
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion .accordion-icon {
  transition: transform 0.4s ease;
  flex-shrink: 0;
  color: var(--color-secondary);
}
details.accordion[open] .accordion-icon { transform: rotate(180deg); }
details.accordion[open] summary h3 { color: var(--color-primary); }
details.accordion .accordion-content {
  padding-bottom: 1.75rem;
  color: var(--color-text);
}
details.accordion .accordion-content > * + * { margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   Forms — gold focus rings
   -------------------------------------------------------------------------- */
.form-input:focus {
  --tw-ring-color: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
}

/* --------------------------------------------------------------------------
   Mobile sticky call / WhatsApp bar
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1.7fr 1fr;
  gap: 1px;
  background: rgba(5, 30, 56, 0.35);
  backdrop-filter: blur(8px);
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-transform: capitalize;
}
.mobile-cta .mobile-cta-book {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-cta .mobile-cta-wa {
  background: var(--color-primary);
  color: #fff;
}
.mobile-cta svg { width: 1.05rem; height: 1.05rem; }
@media (max-width: 1023px) {
  .mobile-cta { display: grid; }
  body { padding-bottom: 3.4rem; }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.prose-legal {
  color: var(--color-text);
  line-height: 1.8;
}
.prose-legal h2 {
  font-size: var(--text-h4-sm);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 48rem) {
  .prose-legal h2 { font-size: var(--text-h4); }
}
.prose-legal h3 {
  font-size: var(--text-h5-sm);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}
.prose-legal p + p { margin-top: 0.85rem; }
.prose-legal ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin-top: 0.85rem;
}
.prose-legal ul li { margin-bottom: 0.45rem; }
.prose-legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--color-secondary) 80%, transparent);
}
.prose-legal a:hover { text-decoration-color: var(--color-secondary); }
.prose-legal .legal-meta {
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--color-text) 75%, transparent);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Footer legal bar
   -------------------------------------------------------------------------- */
.footer-bottom {
  padding-top: 3.5rem;
}
@media (min-width: 64rem) {
  .footer-bottom { padding-top: 4.5rem; }
}
.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  color: rgba(248, 249, 250, 0.6);
  font-size: 0.9rem;
}
.footer-legal-note { text-align: right; }
@media (max-width: 767px) {
  .footer-legal-bar { justify-content: center; text-align: center; }
  .footer-legal-note { text-align: center; }
}

/* --------------------------------------------------------------------------
   Utility shims
   Classes used in the Orofino markup that are not present in the compiled
   template stylesheet. Breakpoints follow the template: md = 48rem,
   lg = 64rem, max-md = <48rem, max-lg = <64rem.
   -------------------------------------------------------------------------- */
.mt-1 { margin-top: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
@media (min-width: 48rem) {
  .md\:h1 { font-size: var(--text-h1); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .lg\:mt-0 { margin-top: 0; }
  .lg\:pt-6 { padding-top: 1.5rem; }
  .lg\:self-start { align-self: flex-start; }
}
@media (max-width: 63.98rem) {
  .max-lg\:pb-8 { padding-bottom: 2rem; }
  .max-lg\:pt-\[10rem\] { padding-top: 10rem; }
}
@media (max-width: 47.98rem) {
  .max-md\:px-6 { padding-inline: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Small composition helpers
   -------------------------------------------------------------------------- */
.divider-gold {
  width: 4rem;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}
.img-round-arch { border-radius: 15rem 15rem 1rem 1rem; }
@media (max-width: 767px) {
  .img-round-arch { border-radius: 9rem 9rem 1rem 1rem; }
}
.step-number {
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 500;
  color: color-mix(in oklab, var(--color-secondary) 90%, transparent);
  font-variant-numeric: tabular-nums;
}
.contact-chip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-body);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.contact-chip:hover {
  border-color: color-mix(in oklab, var(--color-secondary) 55%, transparent);
  transform: translateY(-3px);
}
.map-frame {
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--color-light);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}
.map-facade-inner {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.map-facade-inner svg {
  color: var(--color-secondary);
}
.map-facade-inner p {
  max-width: 26rem;
}
.map-facade-note {
  font-size: 0.85rem;
  color: var(--color-text);
}
