/* ========================================
   Mobile Notary Here - Main Stylesheet
   ======================================== */

:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f2440;
  --accent: #e8a838;
  --accent-hover: #d4952e;
  --success: #38a169;
  --danger: #e53e3e;
  --warning: #dd6b20;
  --info: #3182ce;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --white: #ffffff;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 22px 45px rgba(15, 36, 64, 0.16), 0 8px 18px rgba(15, 36, 64, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background:
    radial-gradient(circle at top, rgba(232, 168, 56, 0.1), transparent 28%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-light);
}

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

::selection {
  background: rgba(232, 168, 56, 0.22);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-md {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: var(--primary);
  padding: 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand:hover {
  color: var(--accent);
}
.navbar-brand .icon {
  font-size: 1.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.nav-links .btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
}
.nav-links .btn-accent:hover {
  background: var(--accent-hover);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, #33578f 100%);
  color: var(--white);
}
.btn-accent {
  background: linear-gradient(135deg, #f0b750 0%, var(--accent) 100%);
  color: var(--primary-dark);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #efbf67 0%, var(--accent-hover) 100%);
  color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}
.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 168, 56, 0.18);
}
.card-body {
  padding: 24px;
}
.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
  font-size: 0.9rem;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(232, 168, 56, 0.16),
    0 10px 30px rgba(26, 54, 93, 0.08);
  transform: translateY(-1px);
}
select.form-control {
  appearance: auto;
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Alerts / Flash Messages */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}
.alert-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}
.alert-warning {
  background: #fffaf0;
  color: #c05621;
  border: 1px solid #feebc8;
}
.alert-info {
  background: #ebf8ff;
  color: #2b6cb0;
  border: 1px solid #bee3f8;
}

/* Hero */
.hero {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(232, 168, 56, 0.28),
      transparent 18%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(255, 255, 255, 0.09),
      transparent 22%
    ),
    linear-gradient(135deg, #173457 0%, #0f2440 55%, #102947 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}
.hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  background: radial-gradient(
    circle,
    rgba(232, 168, 56, 0.22) 0%,
    rgba(232, 168, 56, 0) 70%
  );
}
.hero::after {
  left: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 68%
  );
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Search Box (hero) */
.search-hero {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.search-hero input,
.search-hero select {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
}
.search-hero input:focus,
.search-hero select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 168, 56, 0.16);
}
.search-hero button {
  padding: 14px 28px;
  white-space: nowrap;
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero-secondary-cta {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.hero-secondary-cta:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.14);
}

.trust-strip {
  padding: 18px 0 4px;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 54, 93, 0.08);
  box-shadow: var(--shadow-sm);
  color: var(--gray-700);
  font-size: 0.92rem;
}

.trust-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 54, 93, 0.08);
  color: var(--primary);
  flex-shrink: 0;
}

.state-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.state-link-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.state-link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 54, 93, 0.08);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.state-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 168, 56, 0.24);
}

.state-link-card.compact {
  padding: 14px 16px;
}

.state-link-name {
  color: var(--gray-800);
  font-weight: 700;
}

.state-link-count {
  color: var(--gray-500);
  font-size: 0.88rem;
}

.related-state-grid {
  margin-top: 8px;
}

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  min-width: 140px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Notary Card (search results) */
.notary-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
  transition:
    background 0.22s ease,
    transform 0.22s ease;
}
.notary-card:hover {
  background: linear-gradient(180deg, #fffdf8 0%, #f8fafc 100%);
  transform: translateY(-2px);
}
.notary-card:hover .notary-avatar img {
  transform: scale(1.04);
}
.notary-card:last-child {
  border-bottom: none;
}
.notary-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.notary-info {
  flex: 1;
}
.notary-avatar img {
  transition: transform 0.24s ease, filter 0.24s ease;
}
.notary-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.notary-location {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.notary-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.service-tag {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.notary-card:hover .service-tag {
  background: #edf4ff;
  color: var(--primary);
}
.notary-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--gray-500);
}
.stars {
  color: var(--accent);
}

/* Profile page */
.profile-header {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(232, 168, 56, 0.22) 0%,
    rgba(232, 168, 56, 0) 68%
  );
  pointer-events: none;
}
.profile-header-content {
  display: flex;
  align-items: center;
  gap: 24px;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.profile-details h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}
.profile-details .location {
  opacity: 0.85;
  font-size: 1.1rem;
}
.profile-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.badge-gold {
  background: var(--accent);
  color: var(--primary-dark);
}
.badge-green {
  background: var(--success);
  color: var(--white);
}
.badge-blue {
  background: var(--info);
  color: var(--white);
}

/* Section */
.section {
  padding: 60px 0;
  position: relative;
}
.section-surface {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
  border-top: 1px solid rgba(26, 54, 93, 0.05);
  border-bottom: 1px solid rgba(26, 54, 93, 0.05);
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 32px;
  text-align: center;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: -24px;
  margin-bottom: 32px;
}

/* Features (How it works) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(247, 250, 252, 0.96) 100%
  );
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 54, 93, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(232, 168, 56, 0.24);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--gray-800);
}
.feature-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* Dashboard sidebar layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  min-height: calc(100vh - 64px);
}
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 24px 0;
}
.sidebar-nav {
  list-style: none;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--gray-600);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--gray-50);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}
.dashboard-content {
  padding: 32px;
}
.dashboard-content h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--gray-800);
}

/* Stat cards (dashboard) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.stat-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
}

/* Table */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
th {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-50);
}
td {
  font-size: 0.95rem;
}
tr:hover td {
  background: var(--gray-50);
}

/* Status badges */
.status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pending {
  background: #fefcbf;
  color: #975a16;
}
.status-accepted {
  background: #c6f6d5;
  color: #276749;
}
.status-declined {
  background: #fed7d7;
  color: #c53030;
}
.status-completed {
  background: #bee3f8;
  color: #2b6cb0;
}

/* Stars / Rating input */
.rating-input {
  display: flex;
  gap: 4px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.rating-input input {
  display: none;
}
.rating-input label {
  font-size: 1.5rem;
  color: var(--gray-300);
  cursor: pointer;
  transition: color 0.15s;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: var(--accent);
}

/* Review */
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.review-item:last-child {
  border-bottom: none;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.review-author {
  font-weight: 600;
}
.review-date {
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  font-size: 0.9rem;
}
.pagination a:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}
.pagination .active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--gray-400);
  padding: 48px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer a {
  color: var(--gray-400);
  font-size: 0.9rem;
}
.footer a:hover {
  color: var(--white);
}
.footer ul {
  list-style: none;
}
.footer li {
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.featured-notary-card .card-body {
  position: relative;
  overflow: hidden;
}
.featured-notary-card .card-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(232, 168, 56, 0.08) 0%,
    rgba(255, 255, 255, 0) 38%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.featured-notary-card:hover .card-body::before {
  opacity: 1;
}
.featured-notary-card:hover .notary-avatar img {
  transform: scale(1.04);
}
.featured-notary-card .notary-avatar img {
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.search-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(249, 251, 254, 0.98) 100%
  );
}

.active-filters {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 54, 93, 0.08);
  box-shadow: var(--shadow-sm);
}

.active-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid rgba(26, 54, 93, 0.08);
  color: var(--gray-700);
  font-size: 0.9rem;
}

.filter-chip:hover {
  background: #edf4ff;
  color: var(--primary);
}

.filter-chip-remove {
  font-size: 1rem;
  line-height: 1;
  color: var(--gray-500);
}

.filter-clear-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.active-filters-secondary {
  margin-top: 10px;
  color: var(--gray-600);
  font-size: 0.92rem;
}

.active-filters-secondary a {
  font-weight: 600;
}

.search-mobile-bar {
  display: none;
}

.search-mobile-actions {
  display: flex;
  gap: 10px;
}

.booking-card {
  box-shadow: var(--shadow-lg);
}

.booking-panel-intro {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}

.booking-panel-copy {
  color: var(--gray-600);
  margin-bottom: 12px;
}

.booking-trust-list {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-size: 0.92rem;
}

.booking-trust-list li {
  position: relative;
  padding-left: 18px;
}

.booking-trust-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.booking-success {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f0fff4 0%, #ecfdf3 100%);
  border: 1px solid #c6f6d5;
  text-align: center;
}

.booking-success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 161, 105, 0.14);
  color: var(--success);
  font-size: 1.4rem;
  font-weight: 700;
}

.booking-success h3 {
  margin-bottom: 8px;
  color: #276749;
}

.booking-success p {
  color: #2f855a;
  margin-bottom: 16px;
}

.booking-success-actions {
  display: grid;
  gap: 10px;
}

.state-landing-content-grid {
  align-items: stretch;
}

.state-service-tag {
  text-decoration: none;
}

.state-card-avatar {
  width: 64px;
  height: 64px;
}

.state-copy-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.city-landing-hero .hero-eyebrow,
.state-landing-hero .hero-eyebrow {
  margin-bottom: 20px;
}

.state-guidance-list {
  padding-left: 20px;
  color: var(--gray-700);
  line-height: 1.8;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .hero h1 {
    font-size: 2rem;
  }
  .search-hero {
    flex-direction: column;
  }
  .trust-strip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .state-link-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .stats-row {
    flex-direction: column;
    gap: 16px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar-nav a {
    padding: 8px 16px;
    border-right: none !important;
    border-radius: var(--radius);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .notary-card {
    flex-direction: column;
  }
  .profile-header-content {
    flex-direction: column;
    text-align: center;
  }
  .state-copy-grid,
  .state-landing-content-grid {
    grid-template-columns: 1fr;
  }
  .search-mobile-bar {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 90;
    padding: 10px 0;
    background: rgba(247, 250, 252, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
  }
  .search-mobile-actions .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .stat-cards {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip-grid {
    grid-template-columns: 1fr;
  }
  .state-link-grid,
  .state-link-grid.compact {
    grid-template-columns: 1fr;
  }
  .active-filters-row {
    align-items: stretch;
  }
  .hero {
    padding: 64px 0;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-eyebrow {
    font-size: 0.74rem;
  }
}

/* Legal / Static Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.legal-content h1 {
  margin-bottom: 8px;
}
.legal-content .last-updated {
  color: var(--gray-500);
  margin-bottom: 32px;
}
.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.legal-content p,
.legal-content li {
  line-height: 1.7;
}
.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content ul li {
  margin-bottom: 6px;
}

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.faq-section h1 {
  margin-bottom: 32px;
}
.faq-section h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--primary);
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-item summary:hover {
  background: var(--gray-50, #f9fafb);
}
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item .faq-answer {
  padding: 0 20px 16px;
  line-height: 1.7;
  color: var(--gray-600);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 40px 0;
}
.contact-info h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}
.contact-info p {
  color: var(--gray-600);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Star rating colors */
.star-rating {
  color: #f59e0b;
  letter-spacing: 1px;
}
.star-rating .star-empty {
  color: var(--gray-300);
}
