/* Cercii – custom styles (plain CSS, works alongside the Tailwind CDN) */

:root {
  --paprika: #B5371F;
  --paprika-dark: #962C18;
  --saffron: #E9A23B;
  --char: #2A1C16;
  --cream: #FBF6EE;
  --warm: #8B8078;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--char);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 0.5rem;
}
#main:focus,
section[tabindex="-1"]:focus { outline: none; }

/* Hero background */
.hero-bg {
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(233, 162, 59, 0.28), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(181, 55, 31, 0.12), transparent 60%),
    var(--cream);
}

/* Navigation links */
.nav-link {
  color: var(--char);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover { color: var(--paprika); border-bottom-color: var(--saffron); }

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--paprika); color: var(--cream); }
.btn-primary:hover { background: var(--paprika-dark); }
.btn-secondary { border: 2px solid var(--char); color: var(--char); background: transparent; }
.btn-secondary:hover { background: var(--char); color: var(--cream); }

/* Section headings */
.eyebrow {
  color: var(--paprika);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--char);
}

/* Service cards */
.card {
  background: #fff;
  border: 1px solid rgba(42, 28, 22, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(42, 28, 22, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(42, 28, 22, 0.08); }
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(181, 55, 31, 0.1);
  color: var(--paprika);
  margin-bottom: 1.25rem;
}
.card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--char);
  margin-bottom: 0.6rem;
}
.card-text { color: rgba(42, 28, 22, 0.8); line-height: 1.65; }

/* Key facts */
.fact { background: var(--char); padding: 1.5rem 1.75rem; }
.fact-label {
  color: var(--saffron);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fact-value {
  margin-top: 0.4rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--cream);
}

/* Footer links */
.footer-link {
  color: rgba(251, 246, 238, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(233, 162, 59, 0.5);
  text-underline-offset: 4px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-link:hover { color: #fff; text-decoration-color: var(--saffron); }

/* Legal modals */
.legal-modal {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: var(--cream);
  color: var(--char);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.legal-modal::backdrop { background: rgba(42, 28, 22, 0.65); }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(42, 28, 22, 0.1);
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  color: var(--char);
}
.modal-close:hover { background: rgba(42, 28, 22, 0.07); }
.modal-body { overflow-y: auto; padding: 1.25rem 1.5rem 1.75rem; line-height: 1.65; }
.modal-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.4rem 0 0.4rem;
}
.modal-body p { margin-bottom: 0.6rem; }
.modal-body ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 0.6rem; }
.modal-body li { margin-bottom: 0.3rem; }
body.modal-open { overflow: hidden; }

/* Hero steam animation */
.steam path { animation: rise 3s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 0.5s; }
.steam path:nth-child(3) { animation-delay: 1s; }
@keyframes rise {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-4px); }
}

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