/* ADEY & COOKE LTD - custom styles (plain CSS, used alongside Tailwind CDN) */

:root {
  --exmoor: #2F4A3A;
  --exmoor-light: #3D5E4A;
  --brass: #B8894A;
  --brass-light: #D4AE78;
  --brass-dark: #7F5B2C;
  --charcoal: #1E2622;
  --stone: #F6F3EC;
  --stone-deep: #ECE6D9;
  --ink: #4A524C;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--charcoal);
  color: var(--stone);
  padding: .75rem 1.25rem;
  border-radius: .5rem;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}
#main:focus { outline: none; }

/* Navigation */
.nav-link {
  color: var(--charcoal);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav-link:hover { color: var(--exmoor); border-bottom-color: var(--brass); }

/* Hero texture */
.hero-texture {
  background:
    radial-gradient(circle at 85% 15%, rgba(184, 137, 74, .18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(30, 38, 34, .45), transparent 55%),
    linear-gradient(160deg, #2F4A3A 0%, #243A2D 100%);
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--brass); color: var(--charcoal); }
.btn-primary:hover { background: var(--brass-light); }
.btn-ghost { border: 2px solid rgba(246, 243, 236, .55); color: var(--stone); }
.btn-ghost:hover { border-color: var(--stone); background: rgba(246, 243, 236, .08); }

/* Section headings */
.eyebrow {
  color: var(--brass-dark);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-title {
  font-family: Lora, Georgia, serif;
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--exmoor);
}
@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

/* Service cards */
.card {
  background: var(--stone);
  border: 1px solid rgba(30, 38, 34, .08);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(30, 38, 34, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(30, 38, 34, .25); }
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .875rem;
  background: var(--exmoor);
  color: var(--brass-light);
  margin-bottom: 1.25rem;
}
.card-title {
  font-family: Lora, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--exmoor);
  margin-bottom: .5rem;
}
.card-text { color: var(--ink); line-height: 1.65; }

/* Facts */
.fact {
  border-left: 4px solid var(--brass);
  background: #fff;
  border-radius: 0 .75rem .75rem 0;
  padding: 1.25rem 1.5rem;
}
.fact-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass-dark);
}
.fact-value {
  margin-top: .35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.5;
}

/* Footer */
.footer-link { color: rgba(246, 243, 236, .85); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.footer-link:hover { color: var(--brass-light); text-decoration-color: currentColor; }

/* Legal modals */
.legal-modal {
  width: min(100% - 2rem, 44rem);
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: var(--stone);
  color: var(--charcoal);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .45);
}
.legal-modal::backdrop { background: rgba(30, 38, 34, .7); }
.legal-inner { display: flex; flex-direction: column; max-height: 85vh; }
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(30, 38, 34, .12);
}
.legal-body { overflow-y: auto; padding: 1.25rem 1.5rem 1.75rem; line-height: 1.65; }
.legal-body h3 {
  font-family: Lora, Georgia, serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--exmoor);
  margin-top: 1.25rem;
  margin-bottom: .35rem;
}
.legal-body p, .legal-body li { color: #2E3631; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; margin-top: .5rem; }
.legal-body li + li { margin-top: .35rem; }
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  color: var(--exmoor);
}
.modal-close:hover { background: rgba(47, 74, 58, .1); }
body.modal-open { overflow: hidden; }

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