/* Your Notary Services Plus — modern single-page layout (brand palette preserved) */

:root {
  --yns-slate: #364d59;
  --yns-slate-muted: #4a6572;
  --yns-gold: #fee2b3;
  --yns-gold-deep: #e8c882;
  --yns-black: #0a0a0a;
  --yns-green: #71bc42;
  --yns-bg: #f7f9fa;
  --yns-white: #fff;
  --yns-radius: 12px;
  --yns-shadow: 0 12px 40px rgba(54, 77, 89, 0.12);
  --yns-font: "Roboto", system-ui, sans-serif;
  --yns-display: "Playfair Display", Georgia, serif;
  --yns-header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--yns-font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--yns-slate);
  background: var(--yns-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--yns-black);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--yns-slate-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--yns-black);
  color: var(--yns-white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(54, 77, 89, 0.1);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--yns-header-h);
  padding: 0.5rem 0;
}

.site-logo img {
  width: clamp(140px, 28vw, 200px);
}

.site-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(54, 77, 89, 0.2);
  border-radius: 8px;
  background: var(--yns-white);
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yns-black);
  position: relative;
}

.site-nav-toggle span::before,
.site-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--yns-black);
}

.site-nav-toggle span::before {
  top: -6px;
}

.site-nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: var(--yns-header-h);
  left: 0;
  right: 0;
  background: var(--yns-white);
  border-bottom: 1px solid rgba(54, 77, 89, 0.12);
  padding: 1rem;
  box-shadow: var(--yns-shadow);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  color: var(--yns-slate);
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--yns-gold);
  color: var(--yns-black);
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--yns-black);
  color: var(--yns-white);
}

.btn-primary:hover {
  background: var(--yns-slate);
  color: var(--yns-white);
}

.btn-secondary {
  background: var(--yns-gold);
  color: var(--yns-black);
  border-color: var(--yns-gold-deep);
}

.btn-secondary:hover {
  background: var(--yns-gold-deep);
  color: var(--yns-black);
}

.btn-outline {
  background: transparent;
  border-color: var(--yns-white);
  color: var(--yns-white);
}

.btn-outline:hover {
  background: var(--yns-white);
  color: var(--yns-black);
}

@media (min-width: 900px) {
  .site-nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .header-cta {
    display: inline-flex;
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
  }

  .site-nav {
    justify-self: center;
  }
}

/* Hero */
.hero {
  position: relative;
  color: var(--yns-white);
  background: var(--yns-slate) center / cover no-repeat;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 10vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(54, 77, 89, 0.72) 55%,
    rgba(54, 77, 89, 0.55) 100%
  );
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yns-gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--yns-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin: 0 0 1.25rem;
  max-width: 36rem;
  opacity: 0.95;
}

.hero-area {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--yns-gold);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0 var(--yns-radius) var(--yns-radius) 0;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(254, 226, 179, 0.35);
  border-radius: var(--yns-radius);
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}

.hero-card img {
  width: min(220px, 70%);
  margin: 0 auto 1.25rem;
}

.hero-card h2 {
  font-family: var(--yns-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  text-align: center;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.hero-card li:last-child {
  border-bottom: none;
}

.hero-card a {
  color: var(--yns-gold);
  font-weight: 600;
  text-decoration: none;
}

.hero-card a:hover {
  color: var(--yns-white);
}

/* Trust bar */
.trust-bar {
  background: var(--yns-gold);
  color: var(--yns-black);
  padding: 1.25rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-grid span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 0.2rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--yns-bg);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-family: var(--yns-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
  color: var(--yns-black);
}

.section-head p {
  margin: 0;
  color: var(--yns-slate-muted);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yns-slate-muted);
  margin-bottom: 0.5rem;
}

/* Service cards */
.service-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--yns-white);
  border-radius: var(--yns-radius);
  padding: 1.5rem;
  border: 1px solid rgba(54, 77, 89, 0.1);
  box-shadow: 0 4px 20px rgba(54, 77, 89, 0.06);
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-family: var(--yns-display);
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
  color: var(--yns-black);
}

.service-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.98rem;
}

.service-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--yns-gold);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.service-card a.card-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--yns-black);
}

.service-card a.card-link:hover {
  color: var(--yns-green);
}

/* Service details */
.details-stack {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

details.service-panel {
  background: var(--yns-white);
  border: 1px solid rgba(54, 77, 89, 0.12);
  border-radius: var(--yns-radius);
  overflow: hidden;
}

details.service-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-family: var(--yns-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yns-black);
  background: linear-gradient(90deg, var(--yns-gold) 0%, rgba(254, 226, 179, 0.35) 100%);
}

details.service-panel summary::-webkit-details-marker {
  display: none;
}

details.service-panel summary::after {
  content: "+";
  float: right;
  font-weight: 400;
}

details.service-panel[open] summary::after {
  content: "−";
}

.service-panel-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.service-panel-body h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--yns-black);
}

.service-panel-body h4:first-child {
  margin-top: 0;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yns-green);
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.about-photo {
  border-radius: var(--yns-radius);
  overflow: hidden;
  box-shadow: var(--yns-shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.pill-list li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--yns-gold);
  color: var(--yns-black);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(54, 77, 89, 0.25);
  border-radius: 8px;
  font: inherit;
  color: var(--yns-slate);
  background: var(--yns-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--yns-gold-deep);
  outline-offset: 1px;
}

.form-row-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-notice {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

.form-notice.is-visible {
  display: block;
}

.form-notice.info {
  background: rgba(254, 226, 179, 0.5);
  border: 1px solid var(--yns-gold-deep);
}

.form-notice.warn {
  background: #fff3cd;
  border: 1px solid #ffc107;
}

.contact-card {
  background: var(--yns-white);
  border-radius: var(--yns-radius);
  padding: 1.75rem;
  border: 1px solid rgba(54, 77, 89, 0.1);
  box-shadow: var(--yns-shadow);
}

.contact-card h3 {
  font-family: var(--yns-display);
  margin: 0 0 1rem;
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yns-slate-muted);
  margin-top: 1rem;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.contact-card a {
  text-decoration: none;
  word-break: break-word;
}

/* Footer */
.site-footer {
  background: var(--yns-black);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.site-footer a {
  color: var(--yns-gold);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yns-white);
}

.site-footer .logo-footer {
  width: 160px;
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.75;
}

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.mobile-cta a {
  text-align: center;
  padding: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.mobile-cta .call {
  background: var(--yns-black);
  color: var(--yns-white);
}

.mobile-cta .email {
  background: var(--yns-gold);
  color: var(--yns-black);
}

@media (min-width: 900px) {
  .mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (max-width: 899px) {
  body {
    padding-bottom: 3.25rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Accessibility & cross-device polish */
[id] {
  scroll-margin-top: calc(
    var(--yns-header-h) + env(safe-area-inset-top, 0px) + 0.75rem
  );
}

@media (max-width: 899px) {
  [id] {
    scroll-margin-top: calc(
      var(--yns-header-h) + 3.25rem + env(safe-area-inset-top, 0px) + 0.5rem
    );
  }
}

details.service-panel summary {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

details.service-panel summary::after {
  float: none;
  flex-shrink: 0;
}

a:focus-visible,
button:focus-visible,
details.service-panel summary:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--yns-gold-deep);
  outline-offset: 3px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--yns-gold-deep);
  outline-offset: 1px;
}

.hero {
  background-attachment: scroll;
}

.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}

.mobile-cta {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.service-panel-body:focus {
  outline: none;
}

@media (prefers-contrast: more) {
  .hero-lead,
  .section-head p,
  .trust-grid span {
    opacity: 1;
  }

  details.service-panel {
    border-width: 2px;
  }
}

@media (max-width: 899px) {
  .site-nav:not(.is-open) {
    visibility: hidden;
  }

  .site-nav.is-open {
    visibility: visible;
  }
}
