/* ==========================================================================
   FindFemboy.com - Primary Stylesheet
   Modern, accessible, responsive design for adult dating and friendship.
   ========================================================================== */

:root {
  --primary: #bd2d66;
  --primary-hover: #b83265;
  --primary-light: #fdf2f7;
  --primary-rgb: 189, 45, 102;
  
  --secondary: #7c3aed;
  --secondary-hover: #6d28d9;
  --secondary-light: #f5f3ff;
  
  --accent: #f43f5e;
  --dark-hero: #181528;
  --dark-card: #231f38;
  
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --text-white: #ffffff;
  
  --bg-page: #faf8fc;
  --bg-card: #ffffff;
  --bg-subtle: #f4f1f8;
  --bg-card-alt: #fcfaff;
  
  --border-light: #e5e7eb;
  --border-subtle: #eee9f4;
  --border-focus: #d94680;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(24, 21, 40, 0.08);
  --shadow-lg: 0 10px 25px rgba(24, 21, 40, 0.1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --container-max: 1200px;
  --content-max: 860px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessible focus styles */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #111827;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.75em;
  margin-bottom: 0.6em;
  letter-spacing: -0.015em;
}

h1:first-child, h2:first-child, h3:first-child {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-size: 1.0625rem;
}

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

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

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 1.0625rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.content-container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-logo:hover {
  text-decoration: none;
  color: var(--primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.975rem;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 70, 128, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 70, 128, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-main);
}

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

.btn-large {
  font-size: 1.05rem;
  padding: 0.85rem 1.85rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

.mobile-nav-menu {
  display: none;
}

/* Homepage Hero */
.hero-section {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #111827;
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* App Download Placeholder Section */
.app-promo-box {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.app-promo-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.app-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #111827;
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  min-height: 44px;
}

.app-btn:hover {
  background-color: #242b35;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.app-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.app-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.app-btn-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.app-btn-main {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Landing Page Header */
.page-header {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

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

.page-header h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-header-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 1.75rem;
}

.page-featured-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
}

.page-featured-media img {
  width: 100%;
  height: auto;
  /* Preserve the complete image at every screen size. */
  max-height: none;
  object-fit: contain;
}

.media-caption {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 0.6rem 1rem;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

/* Main Content Area */
.main-content {
  padding: 3rem 0 4rem;
  flex: 1 0 auto;
}

.article-content {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.article-content h2 {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

/* Callout Box / Highlight */
.callout-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.callout-box strong {
  color: var(--primary-hover);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background-color: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 70, 128, 0.3);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primary-hover);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.975rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Post-Content Registration CTA on Landing Pages */
.register-cta-banner {
  background: linear-gradient(135deg, #2b1b3d 0%, #171426 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 2.5rem 0;
  border: 1px solid rgba(217, 70, 128, 0.2);
}

.register-cta-banner h2 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.register-cta-banner p {
  color: #e5e7eb;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 1.75rem auto;
}

.register-cta-banner .btn-register {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(217, 70, 128, 0.45);
}

.register-cta-banner .btn-register:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 70, 128, 0.6);
  text-decoration: none;
}

.register-note {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 1rem;
}

/* FAQ Accordion Section */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.faq-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: rgba(217, 70, 128, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem 1.4rem;
  color: var(--text-muted);
  font-size: 1rem;
  border-top: 1px solid transparent;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Related Guides Grid */
.related-guides {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.related-guides h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
}

.related-link-card {
  display: block;
  padding: 1rem;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.related-link-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  background-color: #14121f;
  color: #d1d5db;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #231f38;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  max-width: 340px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #231f38;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(217, 70, 128, 0.15);
  border: 1px solid rgba(217, 70, 128, 0.3);
  color: #f472b6;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1199px) {
  .main-nav, .header-actions {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    z-index: 99;
  }
  
  .mobile-nav-menu {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav-menu.is-active {
    display: block;
  }
  
  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .mobile-nav-links a {
    display: block;
    padding: 0.6rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
  }
  
  .mobile-nav-links a:hover {
    background-color: var(--bg-subtle);
    color: var(--primary);
    text-decoration: none;
  }
  
  .mobile-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
  }
  
  .mobile-cta-group .btn {
    width: 100%;
  }

  .article-content {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }
  
  .app-buttons-group {
    flex-direction: column;
    width: 100%;
  }
  
  .app-btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Layout, keyboard access, and reduced-motion support. */
main.main-content { padding-top: 0; }
.header-inner { gap: 1rem; }
.brand-logo, .header-actions { flex-shrink: 0; }
.nav-links > li { margin-bottom: 0; }
.nav-link { white-space: nowrap; }
.breadcrumb { flex-wrap: wrap; }
.hero-grid > *, .footer-grid > *, .feature-grid > *, .related-links-grid > * { min-width: 0; }
p, li, h1, h2, h3, .related-link-card, code { overflow-wrap: anywhere; }
.article-content p a, .callout-box a { text-decoration: underline; }
.faq-question { gap: 1rem; }
.faq-question:focus-visible { outline-offset: -4px; }
[id] { scroll-margin-top: 90px; }
.footer-bottom p { color: inherit; font-size: inherit; margin-bottom: 0; }
.mobile-nav-links a[aria-current="page"] { background: var(--primary-light); color: var(--primary); }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 200; padding: 0.75rem 1rem; background: #fff; color: var(--primary); border: 2px solid currentColor; border-radius: 8px; }
.skip-link:focus { top: 0.5rem; }
@media (max-width: 600px) {
  .related-guides { padding: 1.25rem; }
  .register-cta-banner { padding: 2rem 1.25rem; }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Store badges and prominent registration links. */
.app-btn { min-height: 58px; padding: 0.65rem 1.35rem; gap: 0.85rem; border-radius: 10px; }
.app-btn svg { width: 26px; height: 26px; }
.app-btn-sub { font-size: 0.75rem; line-height: 1.2; }
.app-btn-main { font-size: 1rem; line-height: 1.25; }
.mid-page-join { display: flex; justify-content: center; margin: 2.5rem 0; }
@media (max-width: 1199px) {
  .header-actions { display: none; }
  .header-inner { gap: 0.5rem; }
  .header-actions .btn { padding: 0.55rem 0.9rem; }
  .mobile-nav-toggle { flex-shrink: 0; }
}
@media (max-width: 380px) {
  .header-inner { padding-left: 0.75rem; padding-right: 0.75rem; }
  .header-inner .brand-logo { font-size: 1.05rem; gap: 0.3rem; }
  .header-inner .brand-icon { width: 24px; height: 24px; }
  .header-actions .btn { font-size: 0.85rem; padding-left: 0.65rem; padding-right: 0.65rem; }
}

/* Registration is the first item in the mobile dropdown. */
@media (max-width: 1199px) {
  .mobile-nav-links .mobile-join-link { background: var(--primary); color: #fff; }
  .mobile-nav-links .mobile-join-link:hover { background: var(--primary-hover); color: #fff; }
}
