/**
 * Patoughi Landing - Standalone CSS
 * Replicates the Next.js/Tailwind design without class-scanning dependency
 */

/* === FONT === */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/themes/patoughi/assets/fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* === CSS VARIABLES === */
:root {
  --pat-foreground: #1a1a2e;
  --pat-muted-fg: #777777;
  --pat-border: #ebebeb;
  --pat-muted-bg: #fafafa;
  --pat-card: #ffffff;
  --pat-indigo: #6366f1;
  --pat-indigo-soft: #f0f0fb;
  --pat-amber: #d97706;
  --pat-amber-soft: #fffbeb;
  --pat-radius: 14px;
  --pat-font: 'Vazirmatn', 'IRANSansX', 'IRANSans', system-ui, sans-serif;
}

/* === RESET for landing === */
.patoughi-landing,
.patoughi-landing * {
  box-sizing: border-box;
}

.patoughi-landing {
  font-family: var(--pat-font);
  color: var(--pat-foreground);
  direction: rtl;
  line-height: 1.6;
  background: #fff;
}

/* === NAVBAR === */
.pat-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  padding: 1rem 5%;
  direction: rtl;
}

.pat-navbar a {
  text-decoration: none;
  color: inherit;
}

.pat-navbar__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.pat-navbar__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #555;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pat-navbar__links li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.pat-navbar__links a {
  color: #555;
  transition: color 0.2s, font-weight 0.2s;
}

.pat-navbar__links a:hover,
.pat-navbar__links a.active {
  color: var(--pat-foreground);
  font-weight: 600;
}

.pat-navbar__cta {
  display: inline-block;
  background: #000;
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.pat-navbar__cta:hover {
  opacity: 0.85;
}

.pat-navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #374151;
}

.pat-mobile-menu {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  direction: rtl;
  width: 100%;
}

.pat-mobile-menu.open {
  display: flex;
}

.pat-mobile-menu ul,
.pat-mobile-menu-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pat-mobile-menu li,
.pat-mobile-menu-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.pat-mobile-menu li::before,
.pat-mobile-menu-list li::before {
  content: none !important;
}

.pat-mobile-menu a {
  display: block;
  padding: 0.95rem 6%;
  font-size: 0.925rem;
  font-weight: 500;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.pat-mobile-menu a:hover {
  background: #f8fafc;
  color: var(--pat-indigo);
}

@media (max-width: 639px) {
  .pat-navbar__links {
    display: none;
  }
  .pat-navbar__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* === SECTIONS BASE === */
.pat-section {
  padding: 4rem 5%;
  text-align: center;
}

.pat-section--white {
  background: #ffffff;
}

.pat-section--muted {
  background: var(--pat-muted-bg);
}

/* === HERO === */
.pat-hero {
  padding: 4rem 5% 3.5rem;
  text-align: center;
  background: #fff;
}

.pat-hero__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--pat-foreground);
  margin: 0 0 1rem;
}

.pat-hero__title span {
  color: var(--pat-indigo);
}

.pat-hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.9;
  color: var(--pat-muted-fg);
  margin: 0 0 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pat-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* === BUTTONS === */
.pat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  font-family: var(--pat-font);
  border: none;
  cursor: pointer;
}

.pat-btn:hover {
  opacity: 0.85;
  color: #fff;
}

/* === SECTION TITLE === */
.pat-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--pat-foreground);
  margin: 0 0 0.6rem;
}

/* === CARDS GRID === */
.pat-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 481px) {
  .pat-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* === FEATURE CARD === */
.pat-feature-card {
  background: var(--pat-card);
  border: 1px solid var(--pat-border);
  border-radius: var(--pat-radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.pat-feature-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.pat-feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.pat-feature-card__icon--indigo {
  background: var(--pat-indigo-soft);
  color: var(--pat-indigo);
}

.pat-feature-card__icon--amber {
  background: var(--pat-amber-soft);
  color: var(--pat-amber);
}

.pat-feature-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.pat-feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pat-foreground);
  margin: 0 0 0.5rem;
}

.pat-feature-card__desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--pat-muted-fg);
  margin: 0;
}

/* === TRUST POINTS === */
.pat-trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pat-trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--pat-card);
  border: 1px solid var(--pat-border);
  border-radius: var(--pat-radius);
  padding: 1.25rem;
  text-align: center;
  width: 100%;
  transition: box-shadow 0.2s;
}

@media (min-width: 481px) {
  .pat-trust-card {
    width: calc(33.333% - 0.84rem);
  }
}

@media (min-width: 1024px) {
  .pat-trust-card {
    flex: 1;
    width: auto;
  }
}

.pat-trust-card--2col {
  width: 100%;
}

@media (min-width: 481px) {
  .pat-trust-card--2col {
    width: calc(50% - 0.625rem);
  }
}

@media (min-width: 1024px) {
  .pat-trust-card--2col {
    flex: 1;
    width: auto;
  }
}

.pat-trust-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pat-trust-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.pat-trust-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pat-foreground);
}

.pat-section-cta {
  margin-top: 2.5rem;
}

/* === APPS SECTION === */
.pat-apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 2.5rem auto 0;
}

@media (min-width: 481px) {
  .pat-apps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pat-app-card {
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.pat-app-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.pat-app-card--indigo {
  border-top: 3px solid var(--pat-indigo);
}

.pat-app-card--amber {
  border-top: 3px solid var(--pat-amber);
}

.pat-app-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pat-foreground);
  margin: 0 0 1.25rem;
}

.pat-app-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pat-app-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.pat-app-link--indigo:hover {
  border-color: var(--pat-indigo);
  background: #fafafe;
}

.pat-app-link--amber:hover {
  border-color: var(--pat-amber);
  background: #fffdf7;
}

.pat-app-link--disabled {
  opacity: 0.35;
  filter: grayscale(1);
  pointer-events: none;
}

.pat-app-link__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pat-app-link__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.pat-app-link__icon--indigo {
  color: var(--pat-indigo);
}

.pat-app-link__icon--amber {
  color: var(--pat-amber);
}

.pat-app-link__icon--gray {
  color: #888;
}

.pat-app-link__text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.pat-app-link__sub {
  font-size: 0.65rem;
  line-height: 1.2;
  color: #999;
}

.pat-app-link__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pat-foreground);
  margin-top: 2px;
}

/* === FOOTER === */
.pat-footer {
  border-top: 1px solid #f0f0f0;
  background: #fff;
  direction: rtl;
  font-family: var(--pat-font);
}

.pat-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 5%;
}

@media (min-width: 700px) {
  .pat-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.pat-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.pat-footer__brand a {
  text-decoration: none;
}

.pat-footer__brand img {
  height: 40px;
  width: auto;
}

.pat-footer__seals {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pat-footer__seals img {
  height: 80px;
  width: auto;
  cursor: pointer;
}

.pat-footer__nav h4,
.pat-footer__contact h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pat-foreground);
  margin: 0 0 1rem;
}

.pat-footer__nav ul,
.pat-footer__contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pat-footer__nav a {
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.pat-footer__nav a:hover {
  color: var(--pat-foreground);
}

.pat-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.pat-footer__contact a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.pat-footer__contact a:hover {
  color: var(--pat-foreground);
}

.pat-footer__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke-width: 2;
  color: var(--pat-indigo);
}

.pat-footer__socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 4px;
}

.pat-footer__socials a,
.pat-footer__socials span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  transition: opacity 0.2s ease;
}

.pat-footer__socials a:hover {
  opacity: 0.8 !important;
  transform: none !important;
  box-shadow: none !important;
}

.pat-footer__socials svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}

.pat-footer__socials .disabled,
.pat-footer__socials span.disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  background: transparent !important;
  border: none !important;
}

.pat-footer__bottom {
  border-top: 1px solid #f0f0f0;
  padding: 1rem 5%;
}

.pat-footer__bottom p {
  font-size: 0.75rem;
  color: #aaa;
  margin: 0;
}

/* === PAGE HERO === */
.pat-page-hero {
  border-bottom: 1px solid #f0f0f0;
  padding: 3.5rem 5% 2rem;
  background: #fff;
}

.pat-page-hero--center {
  text-align: center;
}

.pat-page-hero__label {
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pat-page-hero__label--indigo {
  color: var(--pat-indigo);
}

.pat-page-hero__label--amber {
  color: var(--pat-amber);
}

.pat-page-hero__title {
  margin-bottom: 0.6rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--pat-foreground);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.pat-page-hero__title--h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.pat-page-hero__desc {
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--pat-muted-fg);
  margin-top: 0;
}

.pat-page-hero--center .pat-page-hero__desc {
  margin-left: auto;
  margin-right: auto;
}

/* === BUTTON OUTLINE === */
.pat-btn--outline {
  background: transparent;
  color: var(--pat-foreground);
  border: 1.5px solid #e0e0e0;
}

.pat-btn--outline:hover {
  background: #fafafa;
  border-color: #cccccc;
  color: var(--pat-foreground);
}

/* === CONTACT CARDS === */
.pat-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: var(--pat-radius);
  border: 1px solid var(--pat-border);
  background: var(--pat-muted-bg);
  padding: 1.5rem;
  text-align: right;
}

.pat-contact-card__icon {
  display: flex;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.pat-contact-card__icon--indigo {
  background: var(--pat-indigo-soft);
  color: var(--pat-indigo);
}

.pat-contact-card__icon--amber {
  background: var(--pat-amber-soft);
  color: var(--pat-amber);
}

.pat-contact-card__icon--green {
  background: #ecfdf5;
  color: #10b981;
}

.pat-contact-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.pat-contact-card__content {
  min-width: 0;
  flex: 1;
}

/* === PROSE (TERMS & PRIVACY) === */
.pat-prose {
  max-width: 720px;
  margin: 0 auto;
  text-align: right;
  line-height: 2;
  color: var(--pat-foreground);
}

.pat-prose article {
  margin-bottom: 2rem;
}

.pat-prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pat-foreground);
  margin: 0 0 1rem 0;
}

.pat-prose p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--pat-muted-fg);
  margin: 0 0 1rem 0;
}

.pat-prose hr {
  border: 0;
  border-top: 1px solid #f0f0f0;
  margin: 2rem 0;
}

.pat-prose ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0;
}

.pat-prose li {
  position: relative;
  list-style: none !important;
  padding-right: 0 !important;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--pat-muted-fg);
  margin-bottom: 0.75rem;
}

.pat-prose li::before {
  content: none !important;
}

.pat-prose .term-name {
  font-weight: 700;
  color: var(--pat-foreground);
}

/* === FAQ ACCORDION === */
.pat-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}

.pat-faq-item {
  background: var(--pat-card);
  border: 1px solid var(--pat-border);
  border-radius: var(--pat-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pat-faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.pat-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pat-foreground);
  cursor: pointer;
  user-select: none;
}

.pat-faq-question svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  color: var(--pat-indigo);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.pat-faq-item.open .pat-faq-question svg {
  transform: rotate(180deg);
}

.pat-faq-answer {
  display: none;
  padding: 0.75rem 1.5rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--pat-muted-fg);
  border-top: 1px solid #f8fafc;
}

.pat-faq-item.open .pat-faq-answer {
  display: block;
}


