/* DSM (Pacific) Pty Limited - supplementary styles (Tailwind handles the rest) */

html { -webkit-text-size-adjust: 100%; }

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

body:has(dialog[open]) { overflow: hidden; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  background: #B8975A;
  color: #0E1424;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
:focus-visible {
  outline: 2px solid #B8975A;
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus, section:focus, [tabindex="-1"]:focus { outline: none; }

/* Hero background */
.hero-bg {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(184, 151, 90, .16), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgba(247, 245, 240, .06), transparent 60%),
    linear-gradient(160deg, #14213D 0%, #0E1424 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(184, 151, 90, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 151, 90, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%);
}
.hero-bg > * { position: relative; z-index: 1; }

.sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 3.4s ease-in-out infinite;
}
.sparkle-delay-1 { animation-delay: 1.1s; }
.sparkle-delay-2 { animation-delay: 2.2s; }
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.75); }
  50% { opacity: 1; transform: scale(1); }
}

/* Navigation */
.nav-link {
  color: rgba(247, 245, 240, .85);
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-link:hover { color: #E3CD9D; border-bottom-color: #B8975A; }

/* Section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #7A5F2C;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: #B8975A;
}
.eyebrow-dark { color: #E3CD9D; }

.section-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.12;
  color: #14213D;
}
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }

/* Service cards */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid rgba(20, 33, 61, .1);
  border-radius: 1rem;
  background: #FFFFFF;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (min-width: 640px) { .service-card { padding: 2.25rem; } }
.service-card:hover {
  border-color: rgba(184, 151, 90, .6);
  box-shadow: 0 18px 40px -24px rgba(14, 20, 36, .35);
  transform: translateY(-2px);
}
.service-card::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #B8975A, rgba(184, 151, 90, 0));
}

.icon-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: .875rem;
  background: #14213D;
  color: #E3CD9D;
}
.icon-badge svg { width: 1.6rem; height: 1.6rem; }
.icon-badge-dark {
  background: rgba(184, 151, 90, .12);
  border: 1px solid rgba(184, 151, 90, .35);
  color: #E3CD9D;
}

.check-list { display: grid; gap: .6rem; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.55;
  color: #0E1424;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .5rem;
  width: .55rem;
  height: .55rem;
  transform: rotate(45deg);
  border: 1.5px solid #B8975A;
  background: rgba(184, 151, 90, .2);
}

/* Form */
.field-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: #0E1424;
}
.field {
  display: block;
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid #B9BDC4;
  border-radius: .6rem;
  background: #FFFFFF;
  color: #0E1424;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: #6B717C; }
.field:focus {
  outline: none;
  border-color: #14213D;
  box-shadow: 0 0 0 3px rgba(184, 151, 90, .45);
}
.field[aria-invalid="true"] {
  border-color: #B42318;
  box-shadow: 0 0 0 1px #B42318;
}
.field-error {
  margin-top: .4rem;
  font-size: .8125rem;
  font-weight: 500;
  color: #B42318;
}
select.field {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 1.1rem;
}

.form-status-ok {
  padding: 1rem 1.1rem;
  border-radius: .75rem;
  border: 1px solid rgba(20, 33, 61, .15);
  background: #F7F5F0;
  color: #0E1424;
}
.form-status-error {
  padding: .85rem 1.1rem;
  border-radius: .75rem;
  border: 1px solid rgba(180, 35, 24, .3);
  background: #FEF3F2;
  color: #912018;
}

.link-button {
  color: #14213D;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #B8975A;
  text-underline-offset: 3px;
}
.link-button:hover { color: #7A5F2C; }

/* Contact links */
.contact-link {
  color: #F7F5F0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(184, 151, 90, .7);
  text-underline-offset: 4px;
}
.contact-link:hover { color: #E3CD9D; }
.contact-link-light {
  color: #14213D;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #B8975A;
  text-underline-offset: 4px;
}
.contact-link-light:hover { color: #7A5F2C; }

.social-link {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(20, 33, 61, .2);
  border-radius: 9999px;
  color: #14213D;
  transition: border-color .15s ease, background-color .15s ease;
}
.social-link:hover { border-color: #B8975A; background: #F7F5F0; }

/* Footer */
.footer-link {
  color: rgba(247, 245, 240, .85);
  transition: color .15s ease;
}
.footer-link:hover { color: #E3CD9D; }

/* Legal dialogs */
.legal-dialog {
  width: min(46rem, calc(100vw - 2rem));
  max-height: min(85vh, 52rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #FFFFFF;
  color: #0E1424;
  box-shadow: 0 30px 80px -20px rgba(14, 20, 36, .55);
}
.legal-dialog::backdrop {
  background: rgba(14, 20, 36, .72);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.legal-dialog[open] { animation: dialog-in .2s ease-out; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.legal-inner {
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 52rem);
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(20, 33, 61, .1);
}
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  font-size: .95rem;
  line-height: 1.65;
  color: #2A3040;
}
@media (min-width: 640px) {
  .legal-head { padding: 1.5rem 2rem; }
  .legal-body { padding: 1.5rem 2rem 2.25rem; }
}
.legal-body h3 {
  margin: 1.5rem 0 .4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #14213D;
}
.legal-body p { margin-top: .6rem; }
.legal-body ul { margin-top: .6rem; padding-left: 1.25rem; list-style: disc; }
.legal-body li { margin-top: .3rem; }
.legal-body a {
  color: #14213D;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #B8975A;
  text-underline-offset: 3px;
}
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #14213D;
  transition: background-color .15s ease;
}
.dialog-close:hover { background: #F7F5F0; }

/* 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;
  }
  .sparkle { animation: none; opacity: .8; }
  .service-card:hover { transform: none; }
}
