/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PENDHARI MACHINES  DESIGN SYSTEM (PHP/Vanilla Version)
   Premium Industrial Engineering Visual Identity
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Font Definitions */
400;
500;
600;
700;
800;
900&family=JetBrains+Mono:wght@400;
500;
700&display=swap');


body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111827;
    /* gray-900 */
}

/* Custom Overlays & Patterns */
.grid-overlay {
    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: 48px 48px;
}

.dot-grid {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* UI Components */
.section-label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.green-accent-line {
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.font-mono-spec {
    font-family: 'JetBrains Mono', monospace;
}

/* Typography Overrides for Dark Sections */
[data-dark="true"] h1,
[data-dark="true"] h2,
[data-dark="true"] h3,
[data-dark="true"] h4,
[data-dark="true"] h5,
[data-dark="true"] h6 {
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: #22c55e;
    /* green-500 */
    color: #111827;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    /* gray-100 */
}

.spec-table tr:nth-child(even) td {
    background-color: #f9fafb;
    /* gray-50 */
}

.spec-table td:first-child {
    font-weight: 500;
    color: #6b7280;
    /* gray-500 */
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: 50%;
}

.spec-table td:last-child {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Header Sticky State */
.header-scrolled {
    background-color: rgba(10, 22, 40, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* FAQ Accordion Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-content.open {
    max-height: 500px;
    /* arbitrary max-height for transition */
    padding-bottom: 1.25rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.open {
    transform: rotate(180deg);
}

/* Mobile Nav Drawer */
.mobile-drawer {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-drawer.open {
    transform: translateX(0);
}

@media(max-width:1023px) {
    body {
        padding-bottom: 65px
    }
}

img {
    max-width: 100%
}

:focus-visible {
    outline: 3px solid #22c55e;
    outline-offset: 3px
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

@media(max-width:640px) {
    #hero h1 {
        font-size: 2.5rem
    }

    .max-w-7xl {
        max-width: 100%
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   INTERIOR PAGE ENHANCEMENTS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Prose content (content-page.php) */
.prose-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.prose-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.prose-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.prose-content ul,
.prose-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.8;
}
.prose-content li {
    margin-bottom: 0.4rem;
}
.prose-content a {
    color: #16a34a;
    text-decoration: underline;
}
.prose-content a:hover {
    color: #b45309;
}
.prose-content strong {
    color: #111827;
    font-weight: 700;
}

/* Video embed container */
.video-embed-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Gallery masonry fix */
.columns-1 > .break-inside-avoid {
    break-inside: avoid;
    page-break-inside: avoid;
}

/* APG homepage button classes (used in index.php) */
.apg-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: #22c55e;
    color: #111827;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
}
.apg-btn-primary:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.apg-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.2s;
}
.apg-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

/* Interior page hero animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.7s ease both;
}

/* Hero decorative lines */
.hero-line {
    animation: shimmer 4s ease infinite;
}
@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}
