/* ===================================
   NotaryNKY — styles.css
   Aesthetic: Editorial / Legal Refinement
   Fonts: Playfair Display + Source Sans 3
   =================================== */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #0f2540;
  --gold:       #c8973a;
  --gold-light: #e8b85a;
  --cream:      #f8f5ef;
  --cream-dark: #efe9df;
  --text:       #1c1c1c;
  --text-mid:   #3d4a56;
  --text-light: #6b7a87;
  --white:      #ffffff;
  --success:    #2d6a4f;
  --border:     #d4cfc7;
  --shadow:     0 2px 12px rgba(26,58,92,0.10);
  --shadow-lg:  0 8px 32px rgba(26,58,92,0.16);
  --radius:     6px;
  --radius-lg:  12px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--gold); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  border-radius: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--gold-light); }

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

/* ===========================
   HERO
   =========================== */
.hero {
  background: var(--navy);
  background-image: 
    radial-gradient(ellipse at 80% 50%, rgba(200,151,58,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  letter-spacing: 0.02em;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  border: 2px solid rgba(200,151,58,0.3);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ===========================
   QUICK BAR
   =========================== */
.quick-bar {
  background: var(--navy-dark);
  border-top: 2px solid var(--gold);
  padding: 28px 0;
}

.quick-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.quick-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--white);
}

.quick-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.quick-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.quick-item p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.65;
}

/* ===========================
   TABS
   =========================== */
.type-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
  font-family: 'Source Sans 3', sans-serif;
}

.tab-btn:hover { color: var(--navy); }

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===========================
   INFO CARDS
   =========================== */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.info-card.featured {
  grid-column: 1 / -1;
}

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.info-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card ul li {
  padding: 7px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text-mid);
  line-height: 1.5;
}

.info-card ul li:last-child { border-bottom: none; }

.card-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ===========================
   DATA TABLES
   =========================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 12px;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--cream); }

/* ===========================
   COUNTY GRID
   =========================== */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.county-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.county-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.county-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.county-card:hover::before { transform: scaleX(1); }

.county-state-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--navy);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.county-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.county-card > p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.county-quick {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.county-quick li {
  font-size: 0.8rem;
  color: var(--text-mid);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
}

.county-quick li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.county-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
}

/* ===========================
   DOC TYPE GRID
   =========================== */
.doc-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.doc-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.doc-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.doc-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===========================
   FEE CALCULATOR
   =========================== */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calculator-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.mobile-check-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.mobile-check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-mid);
  cursor: pointer;
}

.calc-row label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.calc-row select,
.calc-row input[type="number"] {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  transition: border-color 0.2s;
}

.calc-row select:focus,
.calc-row input:focus {
  outline: none;
  border-color: var(--navy);
}

.calc-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 8px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-btn:hover { background: var(--navy-dark); }

.calc-result { margin-top: 20px; min-height: 60px; }

.calc-output {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.calc-total {
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.calc-total strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--success);
}

.calc-note {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.fee-reference-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.fee-reference-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 14px;
}

/* ===========================
   CHECKLIST GRID
   =========================== */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.checklist-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.checklist-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 14px;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--cream-dark);
  line-height: 1.5;
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
  top: 9px;
}

.highlight-card {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.highlight-card h3 { color: var(--white); }
.highlight-card p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 16px; }
.highlight-card .btn-secondary { color: var(--white); }
.highlight-card .card-note { background: rgba(255,255,255,0.1); border-left-color: var(--gold-light); color: rgba(255,255,255,0.7); }

/* ===========================
   COMPARE TABLE
   =========================== */
.compare-table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
}

.compare-table th:first-child { background: var(--navy-dark); }

.compare-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
}

.compare-table tr:nth-child(even) td { background: var(--cream); }

.compare-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===========================
   FAQ
   =========================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { background: var(--cream); }

.faq-item p {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  border-top: 1px solid var(--cream-dark);
  padding-top: 16px;
}

/* ===========================
   BREADCRUMB
   =========================== */
.breadcrumb-bar {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb-bar nav {
  font-size: 0.82rem;
  color: var(--text-light);
}

.breadcrumb-bar a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-bar a:hover { color: var(--gold); }

/* ===========================
   PAGE HERO (location pages)
   =========================== */
.page-hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 70% 50%, rgba(200,151,58,0.12) 0%, transparent 60%);
  padding: 56px 0 48px;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white);
  line-height: 1.15;
  margin: 12px 0 8px;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.page-hero .hero-sub {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.page-intro {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin-top: 12px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--navy-dark);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 700;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold-light); }

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  max-width: 580px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-image { display: none; }

  .quick-bar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .hero { padding: 48px 0; }

  .quick-bar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .type-tabs {
    gap: 2px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .county-grid {
    grid-template-columns: 1fr;
  }

  .doc-type-grid {
    grid-template-columns: 1fr;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    text-align: center;
  }
}
