/* ============================================
   QUISQUEYA LEGAL GROUP — SERVICE PAGE STYLES
   Shared CSS for all 11 service pages
   ============================================ */

:root {
  --navy: #0a1f3d;
  --navy-deep: #061427;
  --gold: #b8954a;
  --gold-light: #d4b876;
  --gold-soft: #e8d4a8;
  --cream: #faf7f2;
  --paper: #f3ede1;
  --ink: #1a2a44;
  --text: #2c3e5d;
  --muted: #6b7a91;
  --border: #d8cfbe;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 300;
}

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(184, 149, 74, 0.15);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cormorant SC', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.15em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.logo-mark .compass-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-mark .compass-rotate {
  transform-origin: 100px 100px;
  animation: compass-spin 90s linear infinite;
}

@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark .compass-rotate { animation: none; }
}

.logo-mark .logo-q-disc {
  position: absolute;
  inset: 30%;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  z-index: 2;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

footer .logo-mark { color: var(--gold-light); }
footer .logo-mark .logo-q-disc { color: var(--gold-light); }


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

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.lang-switch {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.lang-switch:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--navy);
}

/* ============ HERO ============ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #102a4d 100%);
  color: var(--cream);
  padding: 10rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(184, 149, 74, 0.15) 0%, transparent 50%);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 149, 74, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 149, 74, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

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

.breadcrumb-sep { color: var(--gold); }

.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 1.2rem;
  display: block;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.page-hero .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0;
  max-width: 700px;
}

/* ============ CONTENT ============ */
.main-content {
  padding: 6rem 2rem;
  background: var(--cream);
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
}

.lead-intro {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.8;
  padding-bottom: 3rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.lead-intro::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  padding: 0.3rem 0.8rem 0 0;
  color: var(--gold);
  font-weight: 500;
}

.content-block {
  margin-bottom: 4rem;
}

.block-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  position: relative;
  padding-left: 1.5rem;
}

.block-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.7rem;
  height: 2px;
  background: var(--gold);
}

.block-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.block-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: none;
}

.block-content ul li {
  margin-bottom: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.7;
}

.block-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.block-content strong {
  color: var(--navy);
  font-weight: 600;
}

/* ============ FAQ ============ */
.faq-section {
  background: var(--paper);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.faq-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.2;
}

.faq-title em {
  font-style: italic;
  color: var(--gold);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--navy);
  text-align: left;
  font-weight: 500;
  line-height: 1.3;
  gap: 1rem;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  font-size: 1.5rem;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 0 1.5rem 0;
}

.faq-answer p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

/* ============ CTA ============ */
.page-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.page-cta::before {
  content: '';
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(184, 149, 74, 0.3);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.page-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.page-cta p {
  color: rgba(250, 247, 242, 0.75);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(184, 149, 74, 0.4);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============ RELATED ============ */
.related {
  background: var(--cream);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.related-container {
  max-width: 1300px;
  margin: 0 auto;
}

.related-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.related-eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.related-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--navy);
  font-weight: 400;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.related-card {
  padding: 1.8rem;
  background: var(--paper);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.related-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.related-card:hover .related-card-title,
.related-card:hover .related-card-num {
  color: var(--gold-light);
}

.related-card:hover .related-card-arrow {
  color: var(--gold-light);
  transform: translateX(4px);
}

.related-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

.related-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.3s;
}

.related-card-arrow {
  margin-top: auto;
  color: var(--gold);
  font-size: 1.2rem;
  transition: all 0.3s;
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy-deep);
  color: rgba(250, 247, 242, 0.6);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(184, 149, 74, 0.15);
}

.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Cormorant SC', serif;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.7rem; }

.footer-col ul a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
  .main-content, .faq-section, .related, .page-cta { padding: 4rem 1.5rem; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

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

/* Accessibility: skip-to-content link, visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--navy);
  color: var(--gold);
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
