/*
Theme Name: Rameen Prestige
Theme URI: https://rameentaxnotary.com
Author: Antigravity
Author URI: https://rameentaxnotary.com
Description: Classic Prestige & Executive Trust custom WordPress theme for Rameen Income Tax & Notary Public.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: rameen-prestige
*/

:root {
  --primary-navy: #0B192C;
  --primary-navy-dark: #060e1a;
  --primary-navy-light: #1E3E62;
  --accent-gold: #C5A059;
  --accent-gold-hover: #b08a42;
  --accent-gold-light: #F7F3E9;
  --accent-gold-subtle: rgba(197, 160, 89, 0.15);
  --bg-cream: #FBFBF9;
  --bg-card: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  --border-color: #E5E7EB;
  --border-gold: rgba(197, 160, 89, 0.35);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px -4px rgba(11, 25, 44, 0.08);
  --shadow-lg: 0 20px 35px -5px rgba(11, 25, 44, 0.12);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

:where(a, code) {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img, video {
  max-width: 100%;
  max-inline-size: 100%;
  height: auto;
  block-size: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Credibility Header */
.top-bar {
  background-color: var(--primary-navy-dark);
  color: #D1D5DB;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
}

.top-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gold-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-contact a:hover {
  color: var(--accent-gold);
}

/* Main Navigation */
.site-nav {
  background-color: var(--primary-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-bottom: 2px solid var(--accent-gold);
}

.site-nav .container {
  padding: 1rem 1.5rem;
}

.site-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 250px;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand-logo-img {
  opacity: 0.92;
  transform: translateY(-1px);
}

.footer-logo-img {
  height: 46px;
  max-width: 230px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-gold), #8C6A2E);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.35);
  flex-shrink: 0;
}

.brand-text-name {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.site-nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #E5E7EB;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--accent-gold), #9e7930);
  color: #FFFFFF !important;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.3);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: linear-gradient(135deg, #d3ab60, var(--accent-gold));
  transform: translateY(-1px);
}

.mobile-cta-item {
  display: none;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--accent-gold);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(160deg, var(--primary-navy) 0%, #0d1e33 60%, #152d47 100%);
  color: #FFFFFF;
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 25%, rgba(197, 160, 89, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  line-height: 1.18;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}

.hero-title span.gold {
  color: var(--accent-gold);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 2.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #A17D35);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.4);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d3ab60, var(--accent-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(197, 160, 89, 0.55);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.hero-trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #E2E8F0;
}

.trust-item-icon {
  color: var(--accent-gold);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Visual Card */
.hero-card-frame {
  position: relative;
}

.hero-card-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  position: relative;
}

.hero-card-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  filter: brightness(0.95);
}

.hero-floating-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #FFFFFF;
  color: var(--primary-navy);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-badge-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--primary-navy);
  font-weight: 700;
}

.hero-badge-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Services Section */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Services Accordion Component */
.services-accordion-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.services-accordion-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
  gap: 1rem;
}

.services-accordion-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.services-toggle-all-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  color: var(--primary-navy);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.services-toggle-all-btn:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
  border-color: var(--accent-gold);
}

.services-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.service-accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 2px 8px rgba(11, 25, 44, 0.04);
}

.service-accordion-item[open] {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px -4px rgba(11, 25, 44, 0.1);
}

.service-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.6rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  gap: 1.25rem;
  background: #FFFFFF;
}

.service-accordion-summary::-webkit-details-marker {
  display: none;
}

.service-accordion-summary:hover {
  background-color: #FAF8F4;
}

.service-summary-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
  flex: 1;
}

.service-icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-bottom: 0;
}

.service-summary-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-summary-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.25;
}

.service-summary-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-summary-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.service-open-pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--accent-gold);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.service-toggle-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 0.75rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.service-accordion-item[open] .service-toggle-arrow {
  transform: rotate(180deg);
  background: var(--accent-gold);
  color: #FFFFFF;
}

.service-accordion-content {
  border-top: 1px solid #F1F5F9;
  background: #FAF9F6;
}

.service-content-inner {
  padding: 2rem 2.2rem;
}

.service-desc {
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.service-scope-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.service-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 2rem;
  list-style: none;
  margin-bottom: 1.8rem;
}

.service-scope-grid li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-scope-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.88rem;
}

.service-card-action-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(197, 160, 89, 0.35);
}

.service-call-prompt {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-navy);
  transition: color 0.2s ease;
}

.service-call-prompt:hover {
  color: var(--accent-gold);
}

.notary-accordion-split {
  display: flex;
  gap: 2.2rem;
  align-items: flex-start;
}

.notary-main-scope {
  flex: 1;
  min-width: 0;
}

.notary-quick-box {
  background: #FFFFFF;
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  width: 280px;
  max-width: 100%;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* Modern accordion animation from modern-web-guidance */
.service-accordion-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.service-accordion-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .service-accordion-item::details-content {
    transition: block-size 0.3s ease-in-out, content-visibility 0.3s allow-discrete;
  }
}
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  cursor: pointer;
}

.service-action-link:hover {
  color: var(--accent-gold-hover);
  gap: 0.6rem;
}

/* Why Choose Us Section */
.why-section {
  background: var(--primary-navy);
  color: #FFFFFF;
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-content .section-eyebrow {
  color: var(--accent-gold);
}

.why-content .section-title {
  color: #FFFFFF;
}

.why-lead {
  color: #CBD5E1;
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.reason-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.reason-num {
  width: 40px;
  height: 40px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.reason-body h4 {
  font-size: 1.1rem;
  color: #FFFFFF;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.reason-body p {
  font-size: 0.92rem;
  color: #94A3B8;
  line-height: 1.6;
}

.why-card-stack {
  position: relative;
}

.why-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(197, 160, 89, 0.3);
}

.why-stat-box {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--bg-card);
  color: var(--primary-navy);
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent-gold);
  text-align: center;
}

.why-stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.why-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3 Simple Steps Section */
.steps-section {
  background-color: var(--bg-cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.4rem 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.step-badge {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  font-weight: 700;
  background: var(--accent-gold-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

.step-icon-round {
  width: 44px;
  height: 44px;
  background: var(--primary-navy);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.step-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* FAQ Section */
.faq-section {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.accordion-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details.faq-item {
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

details.faq-item[open] {
  border-color: var(--accent-gold);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

summary.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-navy);
  user-select: none;
}

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

.faq-icon-arrow {
  width: 28px;
  height: 28px;
  background: var(--accent-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  font-size: 0.85rem;
}

details[open] .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--accent-gold);
  color: #FFFFFF;
}

details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  details::details-content {
    transition: block-size 0.3s ease-in-out, content-visibility 0.3s allow-discrete;
  }
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(0,0,0,0.04);
  padding-top: 1rem;
}

/* Final CTA Banner */
.cta-banner-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #173250 100%);
  color: #FFFFFF;
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.cta-banner-card {
  max-width: 820px;
  margin: 0 auto;
}

.cta-banner-card h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #FFFFFF;
}

.cta-banner-card p {
  font-size: 1.1rem;
  color: #CBD5E1;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: var(--primary-navy-dark);
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.3rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.5;
}

.footer-contact-item span.icon {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Native Accessible Modal Dialog for Consultation Booking */
dialog#consultationDialog {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 540px;
  width: 90vw;
  margin: auto;
  background: #FFFFFF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

dialog#consultationDialog:modal {
  overscroll-behavior: contain;
}

dialog#consultationDialog::backdrop {
  background: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-header {
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 1.4rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-gold);
}

.dialog-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #D1D5DB;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--accent-gold);
}

.dialog-body {
  padding: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.form-group input, 
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #FAFAFA;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit-modal {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--accent-gold), #9e7930);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
  transition: all 0.2s ease;
}

.btn-submit-modal:hover {
  background: linear-gradient(135deg, #d3ab60, var(--accent-gold));
}

/* Internal Page Styles */
.internal-page-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #173250 100%);
  color: #FFFFFF;
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 2px solid var(--accent-gold);
}

.internal-page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.page-content-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 3.5rem 3rem;
  margin: 3.5rem auto;
  max-width: 960px;
  line-height: 1.8;
}

.page-content-wrapper h2, 
.page-content-wrapper h3, 
.page-content-wrapper h4 {
  font-family: var(--font-serif);
  color: var(--primary-navy);
  margin: 1.8rem 0 1rem;
}

.page-content-wrapper p {
  margin-bottom: 1.4rem;
  color: var(--text-main);
}

.page-content-wrapper ul,
.page-content-wrapper ol {
  margin-bottom: 1.4rem;
  padding-left: 1.8rem;
}

.page-content-wrapper li {
  margin-bottom: 0.5rem;
}

/* WordPress Core Alignment Classes */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}
.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .service-card.span-two {
    grid-column: span 2;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-card-img-wrap img {
    height: 340px;
  }
  .hero-floating-badge {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Top Credibility Bar */
  .top-bar .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
  }
  .top-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
  }
  .top-contact {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.82rem;
  }

  /* Navigation Header */
  .site-nav .container {
    padding: 0.75rem 1rem;
  }
  .brand {
    gap: 0.65rem;
  }
  .brand-logo-img {
    height: 40px;
    max-width: 175px;
  }
  .footer-logo-img {
    height: 40px;
    max-width: 175px;
  }
  .brand-logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .brand-text-name {
    font-size: 1.15rem;
  }
  .brand-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .nav-cta-desktop {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .site-nav-menu {
    position: static;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-navy);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    z-index: 100;
  }

  .nav-links.is-active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-cta-item {
    display: block;
    margin-top: 0.75rem;
    width: 100%;
  }

  .mobile-menu-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 3rem 0 2.5rem;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.5rem);
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-card-img-wrap img {
    height: 250px;
  }
  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Services Accordion on Mobile */
  .services-accordion-wrapper {
    width: 100%;
  }

  .services-accordion-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0;
  }

  .service-accordion-summary {
    padding: 1.1rem 1.15rem;
    gap: 0.75rem;
  }

  .service-summary-left {
    gap: 0.75rem;
  }

  .service-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.3rem;
  }

  .service-summary-title {
    font-size: 1.12rem;
    line-height: 1.25;
  }

  .service-summary-tag {
    font-size: 0.75rem;
    white-space: normal;
  }

  .service-open-pill {
    display: none;
  }

  .service-toggle-arrow {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 0.7rem;
  }

  .service-content-inner {
    padding: 1.4rem 1.25rem;
  }

  .service-scope-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .service-card-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .service-card-action-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .service-call-prompt {
    text-align: center;
    display: block;
  }

  .notary-accordion-split {
    flex-direction: column;
    gap: 1.5rem;
  }

  .notary-quick-box {
    width: 100%;
  }

  /* Other Grids: 1 column on mobile */
  .steps-grid, .why-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .page-content-wrapper {
    padding: 2rem 1.25rem;
    margin: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .top-badges {
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
  }
  .top-contact {
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
  }
  .brand-logo-img {
    height: 34px;
    max-width: 150px;
  }
  .brand-tagline {
    font-size: 0.6rem;
  }
  .cta-banner-card {
    padding: 2.2rem 1.25rem;
  }
  .cta-banner-card h2 {
    font-size: 1.55rem;
  }
  .cta-banner-card .btn {
    width: 100%;
    justify-content: center;
  }
}
