/* Gene Routh — Public Notary */

:root {
  --ink: #142832;
  --ink-soft: #2a4450;
  --teal: #1e5a66;
  --teal-deep: #0f3d47;
  --brass: #b8923a;
  --brass-soft: #d4b56a;
  --mist: #e6eef1;
  --paper: #f3f6f8;
  --white: #ffffff;
  --muted: #5a6f78;
  --line: rgba(20, 40, 50, 0.12);
  --shadow: 0 18px 40px rgba(20, 40, 50, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Sora", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(30, 90, 102, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 146, 58, 0.1), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 40%, var(--mist) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 248, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* —— Layout —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  overflow: hidden;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
}

.btn-brass:hover {
  background: var(--brass-soft);
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* —— Hero (home) —— */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: grid;
  align-items: end;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: hero-settle 1.4s var(--ease) both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 61, 71, 0.35) 0%, rgba(20, 40, 50, 0.78) 70%, rgba(20, 40, 50, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 40, 50, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero-brand em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass-soft);
}

.hero-lead {
  max-width: 28rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  animation: rise 0.9s var(--ease) 0.3s both;
}

.hero .cta-row {
  animation: rise 0.9s var(--ease) 0.45s both;
}

.hero .btn-primary {
  background: var(--brass);
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: var(--brass-soft);
  color: var(--ink);
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(30, 90, 102, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  animation: rise 0.7s var(--ease) both;
}

.page-hero p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  animation: rise 0.7s var(--ease) 0.12s both;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.section .lede {
  max-width: 34rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split.reverse .split-copy {
    order: 2;
  }
}

.split-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  animation: fade-in 1s var(--ease) both;
}

.split-visual::before {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 40%;
  height: 40%;
  border: 2px solid var(--brass);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--brass);
}

/* —— Services —— */
.service-stack {
  display: grid;
  gap: 0;
}

.service-item {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .service-item {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.service-item p {
  margin: 0;
  color: var(--ink-soft);
}

.highlight-band {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: var(--white);
  padding: 3.5rem 0;
  margin: 1rem 0 0;
  position: relative;
  overflow: hidden;
}

.highlight-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(184, 146, 58, 0.15);
  top: -160px;
  right: -80px;
  animation: drift 12s ease-in-out infinite alternate;
}

.highlight-band h2 {
  color: var(--white);
  position: relative;
}

.highlight-band p {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
}

.highlight-band .btn-brass {
  position: relative;
}

/* —— Contact form —— */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
  }
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.contact-details dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-details a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
}

.contact-details a:hover {
  color: var(--teal);
}

.contact-form {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
}

.contact-form .field {
  margin-bottom: 1.1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  transition: border-color 0.2s var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* —— About —— */
.credentials {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.credentials > div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.credentials > div:last-child {
  border-bottom: 1px solid var(--line);
}

.credentials strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.credentials p {
  margin: 0;
  color: var(--muted);
}

/* —— Footer —— */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 0.35rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--brass-soft);
}

.footer-copy {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-30px, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* —— Mobile nav —— */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav {
    gap: 0.5rem 1rem;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .contact-form {
    padding: 1.25rem;
  }
}
