/* Kebbson & Co. – component styles (plain CSS alongside the Tailwind CDN) */

:root {
  --navy: #1F2A3A;
  --brass: #B08D57;
  --brass-deep: #7A5E33;
  --ink: #161616;
  --ivory: #F6F2EC;
  --stone: #8C8579;
  --stone-deep: #5E584F;
}

html { scroll-padding-top: 5.5rem; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 500;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.wordmark { line-height: 1; }
.nav-link {
  position: relative;
  padding: .25rem 0;
  color: var(--navy);
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--brass-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* Hero and contact background */
.hero-bg {
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(176, 141, 87, .20), transparent 62%),
    radial-gradient(700px 480px at 0% 100%, rgba(246, 242, 236, .05), transparent 60%),
    linear-gradient(180deg, #1F2A3A 0%, #19222f 100%);
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover { background: #c29f68; }
.btn-ghost {
  border: 1px solid rgba(246, 242, 236, .45);
  color: var(--ivory);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: #fff;
}

/* Section headings */
.eyebrow {
  margin-bottom: 1rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--navy);
}
@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid rgba(140, 133, 121, .28);
  border-radius: 1rem;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.service-card:hover {
  border-color: rgba(176, 141, 87, .7);
  box-shadow: 0 18px 40px -24px rgba(31, 42, 58, .35);
  transform: translateY(-2px);
}
@media (min-width: 1024px) {
  .service-card { padding: 2.5rem; }
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--navy);
  color: var(--brass);
}
.service-icon svg { width: 1.75rem; height: 1.75rem; }
.service-title {
  margin-top: 1.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}
.service-text {
  margin-top: .85rem;
  line-height: 1.7;
  color: var(--stone-deep);
}

/* Approach list */
.approach-num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--brass-deep);
}
.approach-title {
  margin-top: .5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(176, 141, 87, .45);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}
.approach-text {
  margin-top: .85rem;
  line-height: 1.7;
  color: var(--stone-deep);
}

/* Contact */
.contact-card {
  padding: 1.75rem;
  border: 1px solid rgba(246, 242, 236, .16);
  border-radius: 1rem;
  background: rgba(246, 242, 236, .04);
}
.contact-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}

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

/* Legal dialogs */
.legal-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
.legal-dialog::backdrop { background: rgba(22, 22, 22, .6); }
.legal-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(140, 133, 121, .3);
}
.legal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: var(--navy);
}
.legal-close:hover { background: rgba(31, 42, 58, .08); }
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  line-height: 1.7;
  color: #2b2b2b;
}
@media (min-width: 640px) {
  .legal-head { padding: 1.5rem 2rem; }
  .legal-body { padding: 1.5rem 2rem 2.25rem; }
}
.legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: .35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
}
.legal-body a {
  color: var(--brass-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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