/* ═══════════════════════════════════════════════════════════════════════════
   PrimeGuard Facility Services — Component Styles
   Hero, Cards, Stats, Services, Testimonials, CTA, About, Quote
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #050505 0%, #0a1a12 50%, #050505 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, var(--pg-teal-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, var(--pg-gold-glow) 0%, transparent 40%);
    z-index: 1;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text { max-width: 600px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(12,75,51,0.2);
    border: 1px solid rgba(12,75,51,0.3);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pg-gold);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pg-teal-light);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--pg-gold), var(--pg-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--pg-text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-logo-ring {
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(212,168,67,0.15);
    border-radius: 50%;
    animation: ring-spin 30s linear infinite;
}

.hero-logo-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pg-gold);
}

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

.hero-logo-ring-2 {
    position: absolute;
    inset: -40px;
    border: 1px dashed rgba(12,75,51,0.2);
    border-radius: 50%;
    animation: ring-spin 50s linear infinite reverse;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 60px var(--pg-teal-glow), 0 0 120px rgba(12,75,51,0.1);
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--pg-white);
}

.hero-stat-number .accent { color: var(--pg-gold); }

.hero-stat-label {
    font-size: 13px;
    color: var(--pg-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ── Trust Bar ─────────────────────────────────────────────────────────── */
.trust-bar {
    background: var(--pg-card);
    border-top: 1px solid var(--pg-border);
    border-bottom: 1px solid var(--pg-border);
    padding: 32px 0;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pg-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--pg-teal-light);
}

/* ── Service Cards ─────────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pg-teal), var(--pg-gold));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--pg-card-hover);
    border-color: var(--pg-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(12,75,51,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--pg-teal-light);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--pg-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pg-text-muted);
}

.service-features li svg {
    width: 14px;
    height: 14px;
    color: var(--pg-gold);
    flex-shrink: 0;
}

/* ── Why Us / Features ─────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--pg-border-accent);
    transform: translateY(-3px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212,168,67,0.1);
    border: 1px solid rgba(212,168,67,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--pg-gold);
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--pg-text-muted);
    line-height: 1.7;
}

/* ── Stats Section ─────────────────────────────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, var(--pg-teal) 0%, #083D2A 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--pg-white);
    line-height: 1;
}

.stat-number .gold { color: var(--pg-gold); }

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ── CTA Section ───────────────────────────────────────────────────────── */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-lg);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pg-teal), var(--pg-gold), var(--pg-teal));
}

.cta-box h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--pg-text-muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── About Page: Timeline ──────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--pg-teal), var(--pg-gold));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pg-gold);
    border: 3px solid var(--pg-dark);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--pg-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.timeline-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--pg-text-muted);
    font-size: 15px;
}

/* ── Values Grid ───────────────────────────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.value-card {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius);
    padding: 30px 24px;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--pg-border-accent);
}

.value-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: rgba(212,168,67,0.15);
    margin-bottom: 8px;
}

.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--pg-text-muted); }

/* ── Contact Info Cards ────────────────────────────────────────────────── */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover { border-color: var(--pg-border-accent); }

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(12,75,51,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.contact-card-icon svg { width: 22px; height: 22px; color: var(--pg-teal-light); }

.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--pg-text-muted); }

/* ── Contact Form ──────────────────────────────────────────────────────── */
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.form-card {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius);
    padding: 40px 36px;
}

.form-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.form-card > p {
    color: var(--pg-text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

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

/* ── Quote Form ────────────────────────────────────────────────────────── */
.quote-hero {
    background: linear-gradient(135deg, #050505 0%, #0a1a12 100%);
    padding: 120px 0 80px;
    text-align: center;
}

/* ── Careers ───────────────────────────────────────────────────────────── */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.position-card {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}

.position-card:hover {
    border-color: var(--pg-border-accent);
    transform: translateY(-3px);
}

.position-card h3 { font-size: 19px; margin-bottom: 8px; }

.position-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.position-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--pg-text-dim);
    background: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: 4px;
}

.position-card p {
    font-size: 14px;
    color: var(--pg-text-muted);
    margin-bottom: 16px;
}

/* ── Page Hero (inner pages) ───────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #050505 0%, #0a1a12 50%, #050505 100%);
    padding: 120px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, var(--pg-teal-glow) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, var(--pg-gold-glow) 0%, transparent 40%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 50px);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    color: var(--pg-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Breadcrumb ────────────────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.breadcrumb a { color: var(--pg-text-dim); }
.breadcrumb a:hover { color: var(--pg-gold); }
.breadcrumb span { color: var(--pg-text-dim); }
.breadcrumb .current { color: var(--pg-gold); }

/* ── Error Pages ───────────────────────────────────────────────────────── */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #050505 0%, #0a1a12 100%);
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--pg-teal), var(--pg-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h2 { font-size: 24px; margin-bottom: 12px; }
.error-page p { color: var(--pg-text-muted); margin-bottom: 32px; }

/* ── Legal Pages ───────────────────────────────────────────────────────── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 22px;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pg-border);
}

.legal-content h3 { font-size: 18px; margin: 24px 0 10px; }

.legal-content p {
    color: var(--pg-text-muted);
    margin-bottom: 14px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 12px 0 12px 24px;
    color: var(--pg-text-muted);
}

.legal-content ul li { margin-bottom: 8px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; }
    .hero-logo-wrapper { width: 260px; height: 260px; }
    .hero-stats { justify-content: center; gap: 32px; }
    .hero-stat { text-align: center; }
    .hero-buttons { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form-wrapper { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .positions-grid { grid-template-columns: 1fr; }
}
