/* Main Design System and Global Styles */

:root {
  /* Colors */
  --ptc-primary: #1a3c5e;
  --ptc-accent: #c8942a;
  --ptc-success: #1d7a4f;
  --ptc-danger: #c0392b;
  --ptc-background: #f4f6f9;
  --ptc-surface: #ffffff;
  --ptc-text: #1b2230;
  --ptc-muted: #64748b;
  --ptc-border: #e2e8f0;
  --ptc-border-hover: #cbd5e1;

  /* Spacing */
  --ptc-space-4: 0.25rem;
  --ptc-space-8: 0.5rem;
  --ptc-space-12: 0.75rem;
  --ptc-space-16: 1rem;
  --ptc-space-20: 1.25rem;
  --ptc-space-24: 1.5rem;
  --ptc-space-32: 2rem;
  --ptc-space-40: 2.5rem;
  --ptc-space-48: 3rem;
  --ptc-space-64: 4rem;
  --ptc-space-80: 5rem;

  /* Border Radius */
  --ptc-radius-6: 6px;
  --ptc-radius-8: 8px;
  --ptc-radius-12: 12px;
  --ptc-radius-16: 16px;

  /* Shadows */
  --ptc-shadow-sm: 0 2px 8px rgba(26, 60, 94, 0.04);
  --ptc-shadow-md: 0 8px 24px rgba(26, 60, 94, 0.06);
  --ptc-shadow-lg: 0 16px 48px rgba(26, 60, 94, 0.09);
  --ptc-shadow-glow: 0 0 20px rgba(200, 148, 42, 0.15);

  /* Transitions */
  --ptc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Normalize */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ptc-background);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ptc-background);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
  border: 2px solid var(--ptc-background);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ptc-accent);
}

/* Accessibility Focus States */
*:focus-visible {
  outline: 2px solid var(--ptc-accent);
  outline-offset: 3px;
}

/* Layout */
.ptc-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--ptc-space-24);
}

.ptc-section {
  padding: var(--ptc-space-64) 0;
}

/* Grids */
.ptc-grid {
  display: grid;
  gap: var(--ptc-space-24);
}

.ptc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ptc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ptc-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Header & Nav */
.ptc-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--ptc-border);
  box-shadow: var(--ptc-shadow-sm);
  transition: var(--ptc-transition);
}

.ptc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.ptc-nav__logo {
  display: flex;
  align-items: center;
}

.ptc-nav__logo img {
  max-height: 50px;
  transition: var(--ptc-transition);
}

.ptc-nav__logo img:hover {
  transform: scale(1.02);
}

.ptc-nav__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--ptc-space-32);
}

.ptc-nav__links li {
  position: relative;
}

.ptc-nav__links a {
  color: var(--ptc-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding: var(--ptc-space-8) 0;
  transition: var(--ptc-transition);
}

.ptc-nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ptc-accent);
  transition: var(--ptc-transition);
}

.ptc-nav__links a:hover {
  color: var(--ptc-accent);
}

.ptc-nav__links a:hover::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.ptc-nav__links .menu-item-has-children {
  display: inline-flex;
  align-items: center;
}

.ptc-nav__links .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ptc-nav__links .menu-item-has-children > a::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.ptc-nav__links .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--ptc-surface);
  border: 1px solid var(--ptc-border);
  box-shadow: var(--ptc-shadow-lg);
  border-radius: var(--ptc-radius-12);
  min-width: 240px;
  padding: var(--ptc-space-8) 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
  margin-top: 12px;
}

.ptc-nav__links .sub-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--ptc-surface);
  border-top: 1px solid var(--ptc-border);
  border-left: 1px solid var(--ptc-border);
}

.ptc-nav__links .sub-menu li {
  width: 100%;
}

.ptc-nav__links .sub-menu a {
  display: block;
  padding: var(--ptc-space-12) var(--ptc-space-20);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ptc-text);
  transition: var(--ptc-transition);
}

.ptc-nav__links .sub-menu a::after {
  display: none;
}

.ptc-nav__links .sub-menu a:hover {
  background: var(--ptc-background);
  color: var(--ptc-accent);
}

/* Hover States */
.ptc-nav__links li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ptc-nav__links li:hover > a::after {
  transform: rotate(180deg);
}

.ptc-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--ptc-space-8);
  position: relative;
}

.ptc-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ptc-primary);
  margin-bottom: 5px;
  transition: var(--ptc-transition);
}

.ptc-nav__toggle span:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.ptc-hero {
  background: radial-gradient(circle at 80% 20%, rgba(200, 148, 42, 0.15) 0%, transparent 60%), linear-gradient(135deg, var(--ptc-primary) 0%, #0d1e30 100%);
  color: white;
  padding: var(--ptc-space-80) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ptc-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  pointer-events: none;
}

.ptc-hero h1, .ptc-hero .ptc-h1, .ptc-hero p {
  color: white;
}

.ptc-hero__badge {
  display: inline-block;
  background: rgba(200, 148, 42, 0.15);
  color: var(--ptc-accent);
  padding: var(--ptc-space-4) var(--ptc-space-16);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--ptc-space-20);
  border: 1px solid rgba(200, 148, 42, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cards */
.ptc-card {
  background: var(--ptc-surface);
  border-radius: var(--ptc-radius-12);
  padding: var(--ptc-space-32);
  box-shadow: var(--ptc-shadow-sm);
  transition: var(--ptc-transition);
  border: 1px solid var(--ptc-border);
  position: relative;
}

.ptc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ptc-shadow-md);
  border-color: var(--ptc-border-hover);
}

/* Buttons */
.ptc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--ptc-space-12) var(--ptc-space-24);
  border-radius: var(--ptc-radius-8);
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--ptc-transition);
  border: none;
  font-family: var(--ptc-font-body);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.ptc-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: var(--ptc-transition);
}

.ptc-btn:hover::before {
  opacity: 1;
}

.ptc-btn:active {
  transform: scale(0.98);
}

.ptc-btn--primary {
  background: var(--ptc-primary);
  color: white !important;
  box-shadow: 0 4px 14px rgba(26, 60, 94, 0.15);
}

.ptc-btn--primary:hover {
  background: #112d4a;
  box-shadow: 0 6px 20px rgba(26, 60, 94, 0.25);
}

.ptc-btn--accent {
  background: var(--ptc-accent);
  color: white !important;
  box-shadow: 0 4px 14px rgba(200, 148, 42, 0.2);
}

.ptc-btn--accent:hover {
  background: #b08123;
  box-shadow: 0 6px 20px rgba(200, 148, 42, 0.35);
}

.ptc-btn--outline {
  background: transparent;
  color: var(--ptc-primary) !important;
  border: 1px solid var(--ptc-border);
}

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

/* Page Layout */
.ptc-page-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--ptc-space-40);
  margin-top: var(--ptc-space-40);
  margin-bottom: var(--ptc-space-64);
  align-items: start;
}

.ptc-page-content__sidebar {
  position: sticky;
  top: 100px;
}

.ptc-sidebar__widget {
  margin-bottom: var(--ptc-space-32);
}

.ptc-sidebar__widget:last-child {
  margin-bottom: 0;
}

.ptc-compliance {
  max-width: 800px;
  margin: var(--ptc-space-64) auto;
  background: var(--ptc-surface);
  padding: var(--ptc-space-40);
  border-radius: var(--ptc-radius-16);
  box-shadow: var(--ptc-shadow-md);
  border: 1px solid var(--ptc-border);
}

/* Footer */
.ptc-footer {
  background: #0d1e30;
  color: #94a3b8;
  padding: var(--ptc-space-80) 0 var(--ptc-space-32);
  border-top: 5px solid var(--ptc-accent);
  font-size: 0.95rem;
}

.ptc-footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.8fr;
  gap: var(--ptc-space-48);
  margin-bottom: var(--ptc-space-48);
}

.ptc-footer h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: var(--ptc-space-24);
  font-weight: 700;
  font-family: var(--ptc-font-body);
}

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

.ptc-footer li {
  margin-bottom: var(--ptc-space-16);
}

.ptc-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--ptc-transition);
}

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

.ptc-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--ptc-space-32);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.ptc-footer__bottom a {
  color: #94a3b8;
  border-bottom: 1px solid transparent;
}

.ptc-footer__bottom a:hover {
  color: var(--ptc-accent);
  border-bottom-color: var(--ptc-accent);
  padding-left: 0;
}

/* Breadcrumbs */
.ptc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: var(--ptc-space-24) 0;
  font-size: 0.875rem;
  gap: var(--ptc-space-4);
  align-items: center;
}

.ptc-breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--ptc-muted);
}

.ptc-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--ptc-space-8);
  margin-right: var(--ptc-space-8);
  color: #cbd5e1;
  font-weight: 400;
}

.ptc-breadcrumb a {
  color: var(--ptc-muted);
  text-decoration: none;
  transition: var(--ptc-transition);
  font-weight: 500;
}

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

/* Trust Bar */
.ptc-trust-bar {
  background: white;
  border-bottom: 1px solid var(--ptc-border);
  padding: var(--ptc-space-20) 0;
  display: flex;
  justify-content: center;
  gap: var(--ptc-space-48);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ptc-muted);
  flex-wrap: wrap;
}

.ptc-trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--ptc-space-8);
}

.ptc-trust-bar__item svg, .ptc-trust-bar__item i {
  color: var(--ptc-accent);
}

/* FAQ Accordion */
.ptc-faq {
  margin: var(--ptc-space-40) 0;
  display: flex;
  flex-direction: column;
  gap: var(--ptc-space-16);
}

.ptc-faq__item {
  background: var(--ptc-surface);
  border: 1px solid var(--ptc-border);
  border-radius: var(--ptc-radius-12);
  overflow: hidden;
  transition: var(--ptc-transition);
}

.ptc-faq__item:hover {
  border-color: var(--ptc-border-hover);
  box-shadow: var(--ptc-shadow-sm);
}

.ptc-faq__item.is-active {
  border-color: rgba(200, 148, 42, 0.3);
  box-shadow: var(--ptc-shadow-md);
}

.ptc-faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--ptc-space-20) var(--ptc-space-24);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ptc-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ptc-font-body);
  transition: var(--ptc-transition);
}

.ptc-faq__question:hover {
  color: var(--ptc-accent);
}

.ptc-faq__icon {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.ptc-faq__icon::before, .ptc-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--ptc-accent);
  transition: var(--ptc-transition);
}

.ptc-faq__icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.ptc-faq__icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.ptc-faq__item.is-active .ptc-faq__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.ptc-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 var(--ptc-space-24);
  color: #475569;
}

.ptc-faq__item.is-active .ptc-faq__answer {
  max-height: 500px;
  padding-bottom: var(--ptc-space-20);
}

/* Utilities */
.ptc-text-center { text-align: center; }
.ptc-mt-0 { margin-top: 0; }
.ptc-mb-0 { margin-bottom: 0; }
.ptc-mb-4 { margin-bottom: var(--ptc-space-16); }
.ptc-mb-8 { margin-bottom: var(--ptc-space-32); }
