/*
  ================================================================
  ALDORA'S NOTARY SERVICE — MASTER GLOBAL CSS
  Paste into: Quix Pro > Global CSS
  ================================================================
  This consolidates all design tokens and shared classes used
  across Loan Signings, About, Contact, and NC County pages.

  WHY THIS FILE EXISTS
  ─────────────────────
  Quix Custom HTML elements can strip or unreliably scope <style>
  blocks pasted inside them — including :root variable definitions.
  Global CSS does not have this problem: it's injected at the real
  page <head> level, so var(--gold) etc. resolves correctly
  everywhere, including inside Custom HTML blocks.

  RULE GOING FORWARD: Never put <style> tags (or :root) inside a
  Custom HTML element again. Only class-based HTML goes there —
  all styling lives here, in Global CSS, once.
  ================================================================
*/

:root {
  --gold: #c9a84c;
  --gold-light: #e8cb7a;
  --gold-pale: #f7eed8;
  --teal: #274647;
  --teal-mid: #2f5657;
  --slate: #4a5568;
  --white: #ffffff;
  --off-white: #fafaf7;
  --border: #e2d9c5;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
}

/* ============================================================
   BASE TYPOGRAPHY (scoped to .ans- pages only, won't affect
   Joomla admin or other unrelated site areas)
   ============================================================ */
.ans-page h1, .ans-page h2, .ans-page h3,
.ans-section h1, .ans-section h2, .ans-section h3,
.ans-hero h1, .ans-hero h2, .ans-hero h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
}
.ans-section h2, .ans-hero h2 { font-size: 28px; font-weight: 700; color: var(--teal); margin-bottom: 16px; }
.ans-section h3, .ans-hero h3 { font-size: 17px; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.ans-section p, .ans-hero p { margin-bottom: 14px; line-height: 1.75; font-family: var(--font-body); }
.ans-section p:last-child, .ans-hero p:last-child { margin-bottom: 0; }
.ans-section a, .ans-hero a { color: var(--teal-mid); text-decoration: none; }
.ans-section a:hover, .ans-hero a:hover { color: var(--teal); text-decoration: underline; }
.ans-section strong, .ans-hero strong { font-weight: 600; color: var(--teal); }

/* ============================================================
   LAYOUT — full-width sections, constrained inner content
   ============================================================ */
.ans-section { width: 100%; padding: 64px 32px; box-sizing: border-box; }
.ans-section--white { background: var(--white); }
.ans-section--offwhite { background: var(--off-white); }
.ans-section--pale { background: var(--gold-pale); }
.ans-section--teal { background: var(--teal); }
.ans-inner { max-width: 1100px; margin: 0 auto; width: 100%; }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.ans-label {
  display: inline-block; font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); background: var(--gold-pale);
  border-radius: 4px; padding: 4px 12px; margin-bottom: 12px;
  border: 1px solid var(--border);
}
.ans-label--light {
  color: var(--gold-light); background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.35);
}

/* ============================================================
   HERO — shared by all pages (gradient version)
   For photo-background heroes (county pages), set
   background-image directly on .ans-hero in Quix's section
   settings; this gradient still applies as an ::before overlay
   via the county-specific inline gradient (see county page notes)
   ============================================================ */
.ans-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 65%, #3a6a6b 100%);
  padding: 80px 32px 72px; position: relative; overflow: hidden;
}
.ans-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.ans-hero .ans-inner { position: relative; z-index: 1; }
.ans-breadcrumb { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 20px; font-family: var(--font-body); }
.ans-breadcrumb a { color: rgba(255,255,255,0.78); }
.ans-breadcrumb a:hover { color: var(--gold-light); text-decoration: none; }
.ans-breadcrumb .sep { margin: 0 8px; }
.ans-hero h1 { color: var(--white); max-width: 680px; margin-bottom: 16px; font-size: 38px; font-weight: 700; }
.ans-hero-sub { font-family: var(--font-heading); font-style: italic; font-size: 18px; color: var(--gold-light); margin-bottom: 18px; }
.ans-hero-intro, .ans-hero-towns {
  font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.85);
  max-width: 620px; margin-bottom: 30px; font-family: var(--font-body);
}
.ans-hero-towns strong { color: var(--white); }

.ans-btn-gold {
  display: inline-block; background: var(--gold); color: var(--teal);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  padding: 13px 30px; border-radius: 6px; text-decoration: none; letter-spacing: 0.02em;
}
.ans-btn-gold:hover { background: var(--gold-light); text-decoration: none; }

.ans-btn-outline {
  display: inline-block; color: rgba(255,255,255,0.88); font-family: var(--font-body);
  font-size: 13px; font-weight: 600; padding: 10px 24px; border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.45); text-decoration: none; white-space: nowrap;
}
.ans-btn-outline:hover { background: rgba(201,168,76,0.1); text-decoration: none; }

/* Icon strip under hero (county pages, etc.) */
.ans-icon-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; position: relative; z-index: 1; }
@media (max-width: 640px) { .ans-icon-strip { grid-template-columns: 1fr; } }
.ans-strip-item {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.ans-strip-icon { font-size: 22px; flex-shrink: 0; }
.ans-strip-text { font-size: 13px; font-weight: 600; color: var(--white); font-family: var(--font-body); }

/* Scope note (loan-signing-only county pages) */
.ans-scope-note {
  background: var(--gold-pale); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 14px 20px; margin-top: 24px; position: relative; z-index: 1;
  font-size: 13px; color: var(--teal); max-width: 640px; font-family: var(--font-body);
}

/* ============================================================
   AREA / SERVICE PILLS
   ============================================================ */
.ans-areas-pills, .ans-nsa-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ans-area-pill, .ans-badge {
  font-size: 13px; font-weight: 600; color: var(--teal); background: var(--gold-pale);
  border: 1px solid var(--border); border-radius: 20px; padding: 6px 16px; font-family: var(--font-body);
}
.ans-areas-note { margin-top: 14px; font-size: 13px; color: var(--slate); font-style: italic; font-family: var(--font-body); }

/* ============================================================
   CARD GRIDS (service cards, document categories, county cards)
   ============================================================ */
.ans-cards-grid, .ans-cat-grid, .ans-county-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px;
}
@media (max-width: 860px) { .ans-cards-grid, .ans-cat-grid, .ans-county-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ans-cards-grid, .ans-cat-grid, .ans-county-cards-grid { grid-template-columns: 1fr; } }

.ans-service-card, .ans-cat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 24px; transition: border-color 0.15s, box-shadow 0.15s;
}
.ans-service-card { text-decoration: none; display: flex; flex-direction: column; }
.ans-service-card:hover, .ans-cat-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(39,70,71,0.08); text-decoration: none; }
.ans-card-icon, .ans-cat-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--gold-pale);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.ans-card-title, .ans-cat-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--teal); margin-bottom: 10px; }
.ans-card-desc { font-size: 14px; line-height: 1.65; color: var(--slate); flex: 1; margin-bottom: 16px; font-family: var(--font-body); }
.ans-card-cta { font-size: 13px; font-weight: 700; color: var(--gold); font-family: var(--font-body); }
.ans-card-cta::after { content: ' \2192'; }

.ans-cat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ans-cat-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--slate); line-height: 1.5; font-family: var(--font-body); }
.ans-cat-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 7px; }

/* County hub cards (photo image variant) */
.ans-county-hero-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ans-county-hero-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(39,70,71,0.08); text-decoration: none; }
.ans-county-card-image {
  height: 120px; width: 100%; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.ans-county-card-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,70,71,0.1) 0%, rgba(39,70,71,0.55) 100%); }
.ans-county-card-icon { font-size: 32px; position: relative; z-index: 1; }
.ans-county-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.ans-county-card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--teal); margin-bottom: 8px; }
.ans-county-card-towns { font-size: 13px; color: var(--slate); line-height: 1.6; flex: 1; margin-bottom: 14px; font-family: var(--font-body); }
.ans-county-card-link { font-size: 13px; font-weight: 700; color: var(--gold); font-family: var(--font-body); }
.ans-county-card-link::after { content: ' \2192'; }

.ans-service-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 4px; padding: 3px 9px; margin-bottom: 10px; font-family: var(--font-body);
}
.ans-service-badge--full { background: var(--gold-pale); color: var(--teal); border: 1px solid var(--border); }
.ans-service-badge--loan { background: rgba(39,70,71,0.06); color: var(--teal-mid); border: 1px solid var(--border); }

/* ============================================================
   ICON FEATURE GRIDS (Why Choose Us, values, etc.)
   ============================================================ */
.ans-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 640px) { .ans-features-grid { grid-template-columns: 1fr; } }
.ans-features-grid.ans-features-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .ans-features-grid--3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ans-features-grid--3col { grid-template-columns: 1fr; } }

.ans-feature { display: flex; align-items: flex-start; gap: 14px; }
.ans-feature-icon { flex-shrink: 0; font-size: 24px; margin-top: 2px; }
.ans-feature-text h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 5px; }
.ans-feature-text p { font-size: 14px; color: var(--slate); line-height: 1.6; margin-bottom: 0; font-family: var(--font-body); }

/* Icon list with description (What to Expect, Core Duties, etc.) */
.ans-icon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 28px 0; }
@media (max-width: 640px) { .ans-icon-grid { grid-template-columns: 1fr; } }
.ans-icon-item { display: flex; align-items: flex-start; gap: 16px; }
.ans-icon-bubble {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--gold-pale);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ans-icon-text h3 { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 4px; font-family: var(--font-body); }
.ans-icon-text p { font-size: 14px; color: var(--slate); line-height: 1.6; margin-bottom: 0; font-family: var(--font-body); }

.ans-duties-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.ans-duties-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; line-height: 1.65; color: var(--slate); font-family: var(--font-body); }
.ans-duty-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; background: var(--gold-pale);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ans-duties-list strong { color: var(--teal); }

/* ============================================================
   TABLE (Loan Packages Handled)
   ============================================================ */
.ans-loan-table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border); border-radius: 10px; }
.ans-loan-table { width: 100%; border-collapse: collapse; min-width: 640px; font-family: var(--font-body); }
.ans-loan-table th {
  background: var(--teal); color: var(--white); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 14px 18px;
}
.ans-loan-table td { padding: 14px 18px; font-size: 13px; color: var(--slate); border-top: 1px solid var(--border); vertical-align: top; }
.ans-loan-table tr:nth-child(even) td { background: var(--off-white); }
.ans-loan-table td:first-child { font-weight: 700; color: var(--teal); white-space: nowrap; }

/* ============================================================
   BLOCKQUOTE
   ============================================================ */
.ans-quote, .ans-blockquote {
  border-left: 4px solid var(--gold); background: var(--gold-pale); border-radius: 0 10px 10px 0;
  padding: 24px 28px; margin-top: 20px;
}
.ans-quote p, .ans-blockquote p {
  font-family: var(--font-heading); font-size: 16px; font-style: italic; color: var(--teal);
  line-height: 1.7; margin-bottom: 12px;
}
.ans-quote cite, .ans-blockquote cite { font-family: var(--font-body); font-size: 13px; font-style: normal; font-weight: 700; color: var(--teal-mid); }

/* ============================================================
   COUNTY / COVERAGE CARDS
   ============================================================ */
.ans-coverage-grid, .ans-county-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 700px) { .ans-coverage-grid, .ans-county-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .ans-coverage-grid, .ans-county-grid { grid-template-columns: 1fr; } }
.ans-county-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px;
}
.ans-county-name { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--teal); margin-bottom: 4px; }
.ans-county-towns { font-size: 13px; color: var(--slate); line-height: 1.5; font-family: var(--font-body); }
.ans-coverage-note { margin-top: 14px; font-size: 13px; color: var(--slate); font-family: var(--font-body); }
.ans-coverage-note a { color: var(--teal-mid); font-weight: 600; }

/* Nearby area link cards (county pages) */
.ans-nearby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 700px) { .ans-nearby-grid { grid-template-columns: 1fr; } }
.ans-nearby-card {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; text-decoration: none; transition: border-color 0.15s;
}
.ans-nearby-card:hover { border-color: var(--gold); text-decoration: none; }
.ans-nearby-icon { font-size: 16px; }
.ans-nearby-name { font-size: 13.5px; font-weight: 600; color: var(--teal); font-family: var(--font-body); }
.ans-nearby-future {
  display: flex; align-items: center; gap: 10px; background: var(--off-white); border: 1px dashed var(--border);
  border-radius: 8px; padding: 14px 16px; opacity: 0.7;
}
.ans-nearby-future .ans-nearby-name { color: var(--slate); }
.ans-future-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--gold); margin-left: auto; font-family: var(--font-body); }

/* ============================================================
   TAG CLOUD (Additional Services)
   ============================================================ */
.ans-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ans-tag {
  font-size: 12.5px; color: var(--slate); background: var(--off-white);
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-family: var(--font-body);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.ans-cta-section { background: var(--teal); padding: 72px 32px; position: relative; overflow: hidden; }
.ans-cta-section::before {
  content: ''; position: absolute; right: -40px; top: -40px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(201,168,76,0.08); pointer-events: none;
}
.ans-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.ans-cta-section h2 { font-size: 32px; color: var(--white); margin-bottom: 10px; font-family: var(--font-heading); }
.ans-cta-sub { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 0; font-family: var(--font-body); }
.ans-cta-buttons { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }

/* ============================================================
   APOSTILLE BAND
   ============================================================ */
.ans-apostille-band {
  background: var(--gold-pale); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.ans-apostille-band p { font-size: 14px; color: var(--teal); max-width: 620px; margin-bottom: 0; font-family: var(--font-body); }
.ans-apostille-btns { display: flex; gap: 10px; flex-shrink: 0; }
.ans-btn-teal-sm {
  display: inline-block; background: var(--teal); color: var(--white); font-family: var(--font-body);
  font-size: 13px; font-weight: 700; padding: 10px 20px; border-radius: 6px; text-decoration: none; white-space: nowrap;
}
.ans-btn-teal-sm:hover { background: var(--teal-mid); text-decoration: none; }
.ans-btn-outline-sm {
  display: inline-block; color: var(--teal); border: 1px solid var(--teal); font-family: var(--font-body);
  font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 6px; text-decoration: none; white-space: nowrap;
}
.ans-btn-outline-sm:hover { background: rgba(39,70,71,0.06); text-decoration: none; }

/* ============================================================
   ALSO NEED / CROSS-LINKS
   ============================================================ */
.ans-also-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ans-also-link {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--teal);
  background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 9px 18px; text-decoration: none;
}
.ans-also-link:hover { background: var(--gold-pale); border-color: var(--gold); text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .ans-section { padding: 48px 20px; }
  .ans-hero { padding: 56px 20px 52px; }
  .ans-hero h1 { font-size: 28px; }
  .ans-section h2, .ans-hero h2 { font-size: 24px; }
  .ans-cta-section { padding: 56px 20px; }
  .ans-cta-buttons { align-items: flex-start; }
  .ans-apostille-band { padding: 22px 20px; }
}
